git branch | Liste les branches locales |
git branch -a / --all | Locales + distantes |
git branch -r / --remotes | Uniquement les branches de suivi distantes |
git branch -v | Affiche le dernier commit de chaque branche |
git branch -vv | Idem, avec la branche amont (upstream) et l'écart (ahead/behind) |
git branch --show-current | Affiche le nom de la branche courante |
git branch --list "feature/*" | Filtre par motif |
git branch --merged [<commit>] | Branches déjà fusionnées dans HEAD (ou le commit indiqué) |
git branch --no-merged [<commit>] | Branches non fusionnées |
git branch --contains <commit> | Branches contenant ce commit |
git branch --no-contains <commit> | Branches ne contenant pas ce commit |
git branch --points-at <objet> | Branches pointant sur cet objet |
git branch --sort=<clé> | Trie, par ex. --sort=-committerdate |
git branch --format=<format> | Format de sortie personnalisé |
-i / --ignore-case | Tri et filtre insensibles à la casse |
--column / --no-column | Affichage en colonnes ou non |