git add --dry-run .

Category: Git - Core

git add --dry-run .

Preview what git add would stage

Reports which files would be added, modified, or removed without changing the index. Run it before a big git add to confirm the staging set. Add -v to see per-file verdicts in more detail.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.