git branch new-branch-name
Now switch to that newly created branch:
git checkout new-branch-name
See all branches and which one you're currently on:
git branch
Last updated 5 years ago