Creates a new branch:
git branch <branchname>
Create a new branch and switch to it with the following command. Any prior commits will be a part of the branch as well as the master.
git checkout -b <branchname>
Lists all your local branches, and also tells you which branch you're currently in:
git branch
Type the following to view all remote branches:
git branch -a
If you created a branch and it's not on the list, simply fetch for it. Fetch branches and/or tags (collectively, "refs") from one or more other repositories:
git fetch
To change from one branch to another:
git checkout <branchname>
Delete remote branch:
git push origin --delete <branchname>
Delete local branch:
git branch -d <branchname>
Push changes made from a branch to remote repository:
git push origin <branchname>