how to get original url of git repository
How to get original url of git repository
If you want only the remote URL, or referential integrity has been broken:
1 | $ git config --get remote.origin.url |
If you require full output or referential integrity is intact:
1 | $ git remote show origin |
When using git clone the default name for the source of the clone is “origin”. Using git remote show will display the information about this remote name. The first few lines should show:
1 | MacBookPro:iasl.git michael$ git remote show origin |