tags:

views:

36

answers:

1

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 can't see anything obvious. Anyone know where this upstream information is kept?

+3  A: 

Try git remote:

git remote -v

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

Greg Hewgill
In older git repositories it can be stored in `.git/remotes/origin` file, or even in one of `.git/branches/<branchname>` files (even older).
Jakub Narębski