- Branches keep your work separate from
main - Safer for beginners
- Make sure you are in the repo folder
- Create a new branch:
git checkout -b my-first-branch
git branch- The current branch has a
*
- Read: How to Commit
maingit checkout -b my-first-branchgit branch*