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
- 01Diagnose
- 02Working tree
- 03Index
- 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.