Git: cheat sheet

Switch to the $id branch:
git checkout $id

Delete the $id branch:
git branch -d $id

Create branch $id based on head:
git branch $id

Create branch $id based on head and switch to it:
git checkout -b $id