Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find the url after i use 'git clone' to clone a repository

Tags:

git

I use the 'git clone' to clone a repository from an URL to a local directory and now I forget the URL of that repository that I clone from?

Thank you.

like image 509
michael Avatar asked Oct 20 '25 02:10

michael


1 Answers

To list all your remotes:

git remote show

Then just pick the one you want (I assume it's origin):

git remote show origin

This also shows the remote branches and which branches are being tracked.

like image 150
Pablo Fernandez Avatar answered Oct 22 '25 05:10

Pablo Fernandez