Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to Identify the GitHub URL of a Cloned Git Repository Using Git Command?

I have a Git repository containing a folder with Git files, but I’m not certain if the repository was cloned from a specific URL on GitHub.

Is there a Git command that can help me identify the URL that the repository was cloned from, if any?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Yes, there is a Git command that can help you identify the URL that the repository was cloned from. The command is called git remote show.

Run this command:

git remote show 

This will tell you if the repository was cloned or not. If it was cloned from a URL it will show origin

Then you can see the URL by running :

git remote show origin
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading