Git, AI Tools & Your Career / Git and GitHub
Lesson 5 of 32
Branches
A branch is a separate line of work. Make one for each feature, then merge it back when it's ready.
Key points
- git switch -c feature
- Keep main working
- Merge when done
git switch -c leaderboard
# ...work and commit...
git switch main
git merge leaderboardQuiz · +10 XP
Why work on a branch?
Log in to save progress and earn XP.