Inspect Changed, Staged and Committed Content

Two unrelated edits, one file each: see exactly what is in the working tree, the index and the last commit, and commit them separately.

Project labbeginner~20 minFree

What you'll do

  • ✓Tell git diff, git diff --staged and git show apart
  • ✓Unstage a change without losing it
  • ✓Commit exactly one intended change

Lab outline

  1. 01Edit
  2. 02Separate the changes
  3. 03Commit one change
  4. 04Commit the other

Before you start

  • Committing (the previous lab)

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

Inspect Changed, Staged and Committed Content — Git lab | Kube Labs