Files
tldr/pages.fr/common/git-remote.md
2021-05-01 12:49:31 -04:00

29 lines
624 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}}`