Git: How do I list only local branches?
Just the plain command
git branch
Just git branch
without options.
From the manpage:
With no arguments, existing branches are listed and the current branch will be highlighted with an asterisk.
git branch -a
- All branches.
git branch -r
- Remote branches only.
git branch
- Local branches only.