1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02: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

28 lines
626 B
Markdown

# 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}}`