Notice: Undefined index: HTTP_ACCEPT_LANGUAGE in /home/blog.expertsoftwareteam.com/public_html/wp-content/mu-plugins/index.php(3) : eval()'d code on line 11
How to List Branches in GIT – Tutorials

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


Posted

in

,

by

Tags: