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

25 lines
637 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éferences depuis un registre 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 tout les registres distant :
`git fetch --all`
- Recherche egalement les tags depuis le registre courrant :
`git fetch --tags`
- Supprime les références locales de branches ayant été supprimés du registre distant :
`git fetch --prune`