After cloning a git repository, How can I get the repository file?
for example)
After "git clone http://[email protected]/asdf/asdf.git"
I want to know the URL(http://[email protected]/asdf/asdf.git).
how can I do this?
git clone is primarily used to point to an existing repo and make a clone or copy of that repo at in a new directory, at another location. The original repository can be located on the local filesystem or on remote machine accessible supported protocols. The git clone command copies an existing Git repository.
By default, the clone command saves your code in a folder that shares the name of your repository. This can be overwritten by specifying a folder name after the URL of the repository you want to clone. Creating local copies of a Git repository stored elsewhere is a central part of the Git version control system.
Conclusion: Yes, the owner of a repository will see when someone makes a fork on GitHub, but no, they will not see it when someone makes a clone somewhere else.
Clones a repository into a newly created directory, creates remote-tracking branches for each branch in the cloned repository (visible using git branch -r ), and creates and checks out an initial branch that is forked from the cloned repository's currently active branch.
You can use remote show
, although it's gonna ask your key:
git remote show origin | grep 'Fetch URL'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With