Back
git branch -a //shows both remote and local branches.
git branch -r //shows remote branches.
Is there a way to list just the local branches?
For this,
you can use git branch without any options that will list your local branches.
“With no arguments, existing branches are listed and the current branch will be highlighted with an asterisk”
You need to do is:
git branch
Refer: https://git-scm.com/docs/git-branch#_description
31k questions
32.8k answers
501 comments
693 users