CmdID

CmdID / Commands

git-clone

Clone an existing repository. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Clone an existing repository into a new directory (the default directory is the repository name)

git clone remote_repository_location path/to/directoryIdentify

Clone an existing repository and its submodules

git clone --recursive remote_repository_locationIdentify

Clone only the .git directory of an existing repository

git clone --no-checkout remote_repository_locationIdentify

Clone a local repository

git clone --local path/to/local_repositoryIdentify

Clone quietly

git clone --quiet remote_repository_locationIdentify

Clone an existing repository only fetching the 10 most recent commits on the default branch (useful to save time)

git clone --depth 10 remote_repository_locationIdentify

Clone an existing repository only fetching a specific branch

git clone --branch name --single-branch remote_repository_locationIdentify

Clone an existing repository using a specific SSH command

git clone --config core.sshCommand="ssh -i path/to/private_ssh_key" remote_repository_locationIdentify