git branch

Main Git command for working with branches. More information: https://git-scm.com/docs/git-branch.

git branch {{[-a|--all]}}

git branch {{[-a|--all]}} --contains {{commit_hash}}

git branch --show-current

git branch {{branch_name}}

git branch {{branch_name}} {{commit_hash}}

git branch {{[-m|--move]}} {{old_branch_name}} {{new_branch_name}}

git branch {{[-d|--delete]}} {{branch_name}}

git push {{remote_name}} {{[-d|--delete]}} {{remote_branch_name}}