Git show remote url-How can I determine the URL that a local Git repository was originally cloned from?


I pulled a project from GitHub a few days ago. I've since discovered that there are several forks on GitHub, and I neglected to note which one I took originally. How can I determine which of those forks I pulled?



Below is the tip to get only the remote URL:

git config --get remote.origin.url

In order to get more information about a particular remote, use the below command:

git remote show [remote-name] command

Here the below command can be used:

git remote show origin


If you want to unleash your potential in this competitive field, please visit the Agile course page for more information, where you can find the Agile tutorials and Agile frequently asked interview questions and answers as well.


This topic has been locked/unapproved. No replies allowed

Login to participate in this discussion.

Leave a reply

Before proceeding, please check your email for a verification link. If you did not receive the email, click here to request another.