Listing branches

suggest change

git branch lists branches. Options choose which branches. When it can, Git marks the current branch with a star.

Goal Command
List local branches git branch
List local branches verbose git branch -v
List remote and local branches git branch -a OR git branch --all
List remote and local branches (verbose) git branch -av
List remote branches git branch -r
List remote branches with latest commit git branch -rv
List merged branches git branch --merged
List unmerged branches git branch --no-merged
List branches containing commit git branch --contains [<commit>]

Notes:

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents