How to get the git repository that I cloned before?
After cloning a git repository, How can I get the repository file?
- GIT - sparse checkout not working as expected
- Github network graph looks like metro map
- How do I upload a file into github, upload, not pull, merge, rebase, add just literally upload?
- Rewrite Github Author/Commit History
- What is the effect of git add dirname/*
- I made a pull request from my master branch. Now that request is pending and I want to submit another request
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.