Staging Area
Intermediate snapshot of changes queued for the next commit - moved in via git add.
- Three states: working dir → index → repo.
- git add -p stages part of a file.
- Why Git history can be cleaner than other VCS.
When to use: Splitting unrelated changes into separate, reviewable commits.
Example: git add src/auth.js stages one file; commit records only what is staged.