git/branch

List/Create Branches

List, create, or delete branches

git
branch
list

Command

git branch

Explanation

git branch is used to list, create, or delete branches. It lists, creates, or deletes the branches.

Examples

List all branches

git branch

Create new branch

git branch new-feature

Delete branch

git branch -d old-branch