Branches on Github

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

Leave a Reply

Your email address will not be published. Required fields are marked *