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
git checkout -b commands master
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
git checkout -b commands master