Commands.app

git branch

Branching

List, create, or delete branches

Options & Flags
Available options for this command
-a

List all branches (including remote)

-d

Delete branch

-D

Force delete branch

-m

Rename branch

Examples
Common usage examples

List local branches

git branch

Create new branch

git branch feature-x

Delete branch

git branch -d feature-x
Related Commands
You might also find these useful