Build Atomic Commits with Selective Staging
An endpoint and a log fix, tangled in one file overnight. Stage hunk by hunk and give reviewers two commits.
Project labbeginner~25 minFree
What you'll do
- ✓Stage individual hunks with git add -p
- ✓Review the index before committing
- ✓Order commits so each one stands on its own
Lab outline
- 01Review
- 02Stage a hunk
- 03Commit the feature
Before you start
- Inspecting staged changes (git-04)
Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.