Lesson 5 of 8
Branching
A branch is an independent line of development. The default branch is called main (or master on older projects). Create new branches to work on features without breaking the main code.
GIT
# See current branch and all branches
git branch
# Create a new branch
git branch feature-login
# Switch to a branch
git checkout feature-login
# Create and switch in one command
git checkout -b feature-signup