Command
git branchExplanation
git branch is used to list, create, or delete branches. It lists, creates, or deletes the branches.
Examples
List all branches
git branchCreate new branch
git branch new-featureDelete branch
git branch -d old-branchgit branchgit branch is used to list, create, or delete branches. It lists, creates, or deletes the branches.
List all branches
git branchCreate new branch
git branch new-featureDelete branch
git branch -d old-branch