GitBranching

git branch

Lists, creates, or deletes branches.

Syntax

git branch [-d] [<branch-name>]

Examples

Create a new branch

git branch feature/checkout-flow

Delete a merged branch

git branch -d feature/checkout-flow

Related commands