A cheat sheet for using branches with Github and ensuring they keep in sync

Creating a new branch

git checkout -b your_branch
git push -u origin your_branch

Checkout an existing branch

git checkout --track -b your_branch origin/your_branch