I pulled a project with several forks on GitHub, but forgot which fork it was. How do I determine which fork I pulled?
Git – Determine Original Clone URL of Local Repository
gitgit-remotegithub
gitgit-remotegithub
I pulled a project with several forks on GitHub, but forgot which fork it was. How do I determine which fork I pulled?
Best Answer
To obtain only the remote URL:
If you require full output, and you are on a network that can reach the remote repo where the origin resides:
When using
git clone
(from GitHub, or any source repository for that matter) the default name for the source of the clone is "origin". Usinggit remote show
will display the information about this remote name. The first few lines should show:If you want to use the value in a script, you would use the first command listed in this answer.