# GIT: Comment lister les branches locales et distantes * `git branch -a` affiche les branches distantes et locales. * `git branch -r` affiche les branches distantes. * `git branch` sans options affiche les branches locales. * `git ls-remote --heads --tags /.git | grep -E "refs/heads/"` affiche les branches distantes.