Files
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

29 lines
626 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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