1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 01:22:08 +02:00
tldr/pages.fr/common/git-clone.md
Sebastiaan Speck a72457179b
pages.fr: update outdated pages (#11908)
Co-authored-by: Nicolas Hansse <nico.hansse@gmail.com>
2024-01-15 13:41:38 +01:00

1 KiB

git clone

Clone un dépôt existant. Plus d'informations : https://git-scm.com/docs/git-clone.

  • Clone un dépôt existant dans un répertoire spécifique :

git clone {{emplacement_du_depot_distant}} {{chemin/vers/repertoire}}

  • Clone un dépôt existant et ses sous-modules :

git clone --recursive {{emplacement_du_depot_distant}}

  • Clone un dépôt local :

git clone --local {{chemin/vers/depot/local}}

  • Clone silencieusement :

git clone --quiet {{emplacement_du_depot_distant}}

  • Clone un dépôt existant en ne récupérant que les 10 commits les plus récents sur la branche par défaut (plus rapide) :

git clone --depth {{10}} {{emplacement_du_depot_distant}}

  • Clone un dépôt existant en ne récupérant qu'une branche spécifique :

git clone --branch {{nom}} --single-branch {{emplacement_du_depot_distant}}

  • Clone un dépôt existant en utilisant une commande SSH spécifique :

git clone --config core.sshCommand="{{ssh -i chemin/vers/clef_ssh_privee}}" {{emplacement_du_depot_distant}}