Services Work Learn About Contact
0/8
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
🧠

Quick Quiz

Answer correctly to unlock the next lesson.

Support the mission

This learning platform is 100% free: no ads, no tracking, no paywalls. If it helped you learn something useful, you can support future lessons or donate to Doctors Without Borders, which provides emergency medical care in crisis zones worldwide.

🎉

You completed Git & GitHub!

You finished all 8 lessons and quizzes. You now know the basics of Git & GitHub.