How to List Branches in GIT

  • List all local branches with names only
git branch
  • List all remote branches with names only
git branch -r
  • List all local and remote branches with names only
git branch -a
  • List last commit on each branch
git branch -v
  • List last commit + remote-name on each branch
git branch -vv
  • List all branches merged to current branch
git branch --merged
  • List all branches NOT merged to current branch
git branch --no-merged

* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.