gitpull

Where does Git store information about the origin of a repository?


I have a repository that I cloned from someplace a few months back, and I'd really like to know where it came from. A 'git pull' returns successfully and tells me everything is up to date, but I'd really like to know where its checking.

I've looked in the usual suspects in the .git folder, but I can't see anything obvious. Where is this upstream information kept?


Solution

  • Try git remote:

    git remote -v
    

    This information is actually stored in the .git/config file.