tldr/pages.fr/common/git-show-branch.md

37 lines
1.0 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

# git show-branch
> Affiche les branches et leurs commits.
> Plus d'informations : <https://git-scm.com/docs/git-show-branch>.
- Affiche un résumé du dernier commit dans la branche :
`git show-branch {{nom_de_branche}}|ref|commit}}`
- Comparer des commits avec plusieurs commits ou branches :
`git show-branch {{nom_de_branche}}|ref|commit}}`
- Comparer toutes les branches distantes :
`git show-branch --remotes`
- Comparer la branche locale avec la branche distante :
`git show-branch --all`
- Lister les derniers commits sur toutes les branches :
`git show-branch --all --list`
- Comparer une branche spécifique à la branche courante :
`git show-branch --current {{commit|branch_name|ref}}`
- Afficher le nom du commit au lieu du nom relatif :
`git show-branch --sha1-name --current {{current|branch_name|ref}}`
- Continuez l'affichage d'un certain nombre de commits au-delà de l'ancêtre commun :
`git show-branch --more {{5}} {{commit|branch_name|ref}} {{commit|branch_name|ref}} {{...}}`