How to get the git repository that I cloned before?

After cloning a git repository, How can I get the repository file?

for example)

  • GitHub add users to work together on repo…?
  • Permission denied (publickey) fatal: Could not read from remote repository. while cloning Git repository
  • How to make git output usage for any command?
  • how can I git stash a specific file?
  • How can I combine 2 'git commit's
  • How to remove the first commit in git?
  • After “git clone”

    I want to know the URL(

    how can I do this?

  • How can I allow anonymous push to a git repository over http?
  • git blame while resolving merge conflicts
  • Clone git repository with --recursive and --bare
  • Does Git never delete any information?
  • See complete history of changes in smartGit
  • git marking unchanged files as changed
  • 2 Solutions collect form web for “How to get the git repository that I cloned before?”

    You can use remote show, although it’s gonna ask your key:

    git remote show origin | grep 'Fetch URL'

    If you look in .git/config there should be a block similar to the following:

    [remote "origin"]
        fetch = ...
        url = <this is the url you want>

    You can get this from the command line using

    git config --get remote.origin.url

    Hope that gets what you want.

    Git Baby is a git and github fan, let's start git clone.