Git - Branch

Create your branch locally, new branch followed by checkout:

git checkout -b <branch-name>

Push to remote:

git push -u origin <branch-name>

Delete a branch on your local filesystem:

git branch -d <branch-name>

Delete the branch on remote:

git push origin :<branch-name>

Show which branches contain all commits from current branch:

git branch --merged

Rename branch:

git branch -m old new