1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 14:22:07 +02:00
tldr/pages.fr/common/git-fetch.md

24 lines
632 B
Markdown

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