How to get the git repository that I cloned before?
After cloning a git repository, How can I get the repository file?
After “git clone http://email@example.com/asdf/asdf.git”
I want to know the URL(http://firstname.lastname@example.org/asdf/asdf.git).
how can I do this?
2 Solutions collect form web for “How to get the git repository that I cloned before?”
You can use
remote show, although it’s gonna ask your key:
git remote show origin | grep 'Fetch URL'
If you look in .git/config there should be a block similar to the following:
[remote "origin"] fetch = ... url = <this is the url you want>
You can get this from the command line using
git config --get remote.origin.url
Hope that gets what you want.