← Git & GitHub Basics

Lesson 2 of 3 · 9 min

Branches

Branches let you experiment safely without touching the main version.

git switch -c feature creates and moves to a new branch; merging brings the work back.

Practice

Create a branch, change a file, commit, then merge it back into main.

Quiz

+50 pts
1. Branches are for…
2. Merging…

Optional resources

Your lesson toolkit

No purchase or partner signup is required to complete this course or earn quiz points.

These are official product links, not active affiliate links. Learnly does not currently earn a commission from them.

GitHub

Host your practice repository and open your first pull request.

Free plan available; paid plans optional.

Explore tool