Restore the Correct Git Layer

A messy morning: debug junk in a doc, a local tweak staged by mistake, and a deleted script. Fix each one in the layer where it lives, without a commit.

Project labintermediate~20 minPro

What you'll do

  • ✓Say which layer a change lives in
  • ✓Discard a working-tree change
  • ✓Unstage without losing an edit
  • ✓Bring back a deleted file

Lab outline

  1. 01Diagnose
  2. 02Working tree
  3. 03Index
  4. 04Deleted file

Before you start

  • The working tree and the index (Module 1)

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

Restore the Correct Git Layer — Git lab | Kube Labs