How to get git origin url from the local repository

Sometime we might just need to know the git url where we are updating all our day to day work. It might be the reason you wanted to share the url with your colleague. Below command can be useful in order to get git url

git config --get remote.origin.url
git remote show origin

Everytime your pushed your update you will also see the git url.

git push origin master 

Leave a Reply

Your email address will not be published. Required fields are marked *