git branch -a shows both remote and local branches.
git branch -a
git branch -r shows remote branches.
git branch -r
Is there a way to list just the local branches?
Just git branch without options.
git branch
From the manpage:
With no arguments, existing branches are listed and the current branch will be highlighted with an asterisk.
1.4m articles
1.4m replys
5 comments
57.0k users