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
- 01Edit
- 02Separate the changes
- 03Commit one change
- 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.