git branch
List, create, or delete branches
BranchingSyntax
git branch [name]
Examples
git branch— branchgit branch feature/login— branch feature/logingit branch -d old-branch— branch -d old-branch
Common flags & options
- •-d name Delete branch
- •-D name Force delete
- •-a List all including remote