git clone creates a clone known as local repository from a remote repository.
cloning in git means:
The command is “clone” and not “checkout” ( instead of getting just a working copy, Git receives a full copy of nearly all data that the server has.)
After a first clone of a repository, all files will be tracked, and unmodified because they are just checked out and haven’t been edited.
If you just want to download, see the download page
git clone https://github.com/gerardnico/the-name-of-my-repository.git directoryWhereIwantMyCheckoutData
Cloning into 'directoryWhereIwantMyCheckoutData'...
remote: Counting objects: 77, done.
remote: Total 77 (delta 0), reused 0 (delta 0), pack-reused 77
Unpacking objects: 100% (77/77), done.
Checking connectivity... done.
It will:
git clone --depth=1 https://.....git .
git init
git pull https://.....git "branch"
git clone --branch=stable https://.....git .
How to clone a local repository to another local repository path.
git -C targetRepoPath clone localRepoPath
git -C C:/Users/userName/AppData/Local/Temp/kamal-clones/postgres-b8bf8c33aa7c4 clone C:/code/infra
Clone an existing Git repository from another server.
git clone [option] [url] [directory]
We can also use the following protocol in place of https:
More? See docs/git-clone.html
Git’s clone command automatically: