How to use Git Branches
Create a branch from the current branch and change to it:
git checkout -b new_branch_name
Create a branch from a commit:
git branch commitid
Create a remote tracking branch on the origin remote for a local branch:
git push -u origin branch_name
Switch to another branch:
git checkout new_branch_name
Delete a local branch if it has synced up changes with the upstream branch or HEAD
git branch -d branch_name
Force delete a local branch even if it has not synced up changes with its upstream branches:
git branch -D branch_name
Delete a remote branch on the origin remote:
git push origin :branch_name