Show changes
low risk
Compares working tree, index and commits.
| Flag | Meaning |
|---|---|
--staged --staged | Staged changes |
--stat --stat | Summary |
-w | Ignore whitespace |
git diff --stagedReview before committing · explain & risk-check →git diff main...HEADChanges on this branch · explain & risk-check →Reference text is hand-written and may be incomplete — check man git for your version. Test destructive commands on a non-production system first.