MODULE 2 · Working safely
Reading · 15 min
Branches
Branches
A branch gives a change its own workspace in history. It lets you explore, test, and review without disrupting the stable branch.
Learning objectives
- Create and switch branches
- Name branches by purpose
Use branches to separate a change from the main line of work. Focus on explaining each decision in your own words before relying on a pattern or shortcut.
Example
git switch -c feat/course-catalog
git branch --show-currentSummary
KEY TAKEAWAYS
- Branches isolate work.
- A descriptive branch name communicates intent.
Reading material
Branches practice prompt
Use the exercise in this lesson to check your understanding.
Your progress is saved on this device. Sign in to keep it across devices.
