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

  1. 01Review
  2. 02Stage a hunk
  3. 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.

← All Git labs

Your first machine is
8 seconds away.

Learn by doing on real machines — and give every AI agent one of its own.

Free forever · No credit card · Cancel anytime

Build Atomic Commits with Selective Staging — Git lab | Kube Labs