1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00
tldr/pages.fr/common/git-remote.md
bl-ue 8ebd171d6f
*: fix typos reported by Hunspell (#5848)
Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Seth Falco <seth@falco.fun>
Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
2021-05-20 16:13:41 -04:00

626 B

git remote

Organisation des dépôts suivis ("remotes"). Plus d'informations : https://git-scm.com/docs/git-remote.

  • Affiche les dépôts existants, leur nom et URL :

git remote -v

  • Affiche les informations à propos d'un dépôt :

git remote show {{nom_distant}}

  • Ajoute un dépôt :

git remote add {{nom_distant}} {{url_distant}}

  • Change l'URL d'un dépôt (ajouter --add pour conserver l'URL existante) :

git remote set-url {{nom_distant}} {{new_url}}

  • Supprime un dépôt :

git remote remove {{nom_distant}}

  • Renomme un dépôt :

git remote rename {{old_name}} {{new_name}}