Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I determine the parent repository of a git repository?

Tags:

git

dvcs

When I do a git pull my repository automatically pulls from the original git repo that I cloned from. How can I get the URL of that git repository from the child repository?

like image 746
Ross Rogers Avatar asked Oct 25 '09 22:10

Ross Rogers


2 Answers

Also, git remote -v will show the urls of all your remotes.

like image 68
Neall Avatar answered Nov 09 '22 17:11

Neall


Use git remote:

git remote show

This will list all the remotes. Then, for example:

git remote show origin
like image 44
Greg Hewgill Avatar answered Nov 09 '22 16:11

Greg Hewgill