Git command `branch`
Definition
List, create, or delete branches.
Advanced usage
Create a branch
$ git branch <name>
List branches
$ git branch # local branches $ git branch -r # remotes branches $ git branch --all # all tracked branches
Delete a merged branch
$ git branch -d <name>
Delete a useless branch
$ git branch -D <name>