Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does git store information about the origin of a repository

Tags:

git

pull

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?

like image 882
sgargan Avatar asked Sep 27 '10 02:09

sgargan


1 Answers

Try git remote:

git remote -v

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

like image 57
Greg Hewgill Avatar answered Sep 22 '22 01:09

Greg Hewgill