Main git command for working with branches.

# To list local branches. The current branch is highlighted by '*':
git branch

# To list all branches (local and remote):
git branch -a

# To create new branch based on the current commit:
git branch branch_name

# To rename a branch (must not have it checked out to do this):
git branch -m old_branch_name new_branch_name

# To delete a local branch:
git branch -d branch_name