tldr/pages.fr/common/git-fetch.md

25 lines
638 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 fetch
> Cherche les objets et références depuis un dépôt distant.
> Plus d'informations : <https://git-scm.com/docs/git-fetch>.
- Cherche les dernières modifications du référentiel amont distant par défaut (si configuré) :
`git fetch`
- Cherche les nouvelles branches depuis un registre distant :
`git fetch {{nom_distant}}`
- Cherche les nouvelles branches depuis tous les registres distants :
`git fetch --all`
- Recherche également les tags depuis le registre courant :
`git fetch --tags`
- Supprime les références locales de branches ayant été supprimés du registre distant :
`git fetch --prune`