Tuesday, April 7, 2015

How can I determine the url that a local git repo was originally cloned from?

If referential integrity has been broken:
git config --get remote.origin.url
If referential integrity is intact:
git remote show origin
When using git clone (from github, or any source repository for that matter) the default name for the source of the clone is "origin". Using git remote show will display the information about this remote name.

Source : http://stackoverflow.com/questions/4089430/how-can-i-determine-the-url-that-a-local-git-repo-was-originally-cloned-from

No comments:

Post a Comment