Forrest logo
back to context overview

git-clone

List of commands for git-clone:

  • git-clone:tldr:16789 git-clone: Clone only the `.git` directory of an existing repository.
    $ git clone --no-checkout ${remote_repository_location}
    try on your machine
    explain this command
  • git-clone:tldr:532ed git-clone: 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_location}
    try on your machine
    explain this command
  • git-clone:tldr:6c3b7 git-clone: Clone an existing repository only fetching a specific branch.
    $ git clone --branch ${name} --single-branch ${remote_repository_location}
    try on your machine
    explain this command
  • git-clone:tldr:70e49 git-clone: Clone quietly.
    $ git clone --quiet ${remote_repository_location}
    try on your machine
    explain this command
  • git-clone:tldr:c69bd git-clone: Clone an existing repository using a specific SSH command.
    $ git clone --config core.sshCommand="${ssh -i path-to-private_ssh_key}" ${remote_repository_location}
    try on your machine
    explain this command
  • git-clone:tldr:caf88 git-clone: Clone an existing repository into a new directory (the default directory is the repository name).
    $ git clone ${remote_repository_location} ${path-to-directory}
    try on your machine
    explain this command
  • git-clone:tldr:d3036 git-clone: Clone an existing repository and its submodules.
    $ git clone --recursive ${remote_repository_location}
    try on your machine
    explain this command
  • git-clone:tldr:dfe1d git-clone: Clone a local repository.
    $ git clone --local ${path-to-local-repository}
    try on your machine
    explain this command
back to context overview