sgargan
sgargan

Reputation: 12628

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

Upvotes: 9

Views: 5002

Answers (1)

Greg Hewgill
Greg Hewgill

Reputation: 992995

Try git remote:

git remote -v

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

Upvotes: 19

Related Questions