git clean -n

Category: Git - Core

git clean -n

Dry-run git clean to preview what would be removed

Shows what git clean would delete without actually deleting anything. -n means 'dry run'.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.