Committing without review leads to mistakes. –staged shows exactly what will be committed.
See Staged Changes:
git diff --staged # Shows changes that are staged (git add-ed) for commit
vs git diff: git diff (no flags) shows unstaged changes only. –staged shows what’s going into the commit.
Review Workflow:
git add . git diff --staged # Review what will be committed git commit -m "message"
Catch debug code, console.logs, TODOs before they go to repo!




