Create a new branch git checkout -b {{NEW_BRANCH}} {{OLD_BRANCH}} Checkout command switches between branches -b flag tells it to create a new branch at the same time NEW_BRANCH: New branch to be created OLD_BRANCH: The existing branch Example: git checkout -b commands master Demo Related Switch Branch Commit changes Stage