In brief
git clean targets untracked files. The -n option shows what would be removed without deleting it.
Useful to know
git clean targets untracked files. The -n option shows what would be removed without deleting it. [1]
This differs from reverting edits in a tracked file. Exports and local settings may have no recoverable Git copy. Review the exact scope rather than including ignored files merely to make every working-tree entry disappear.
Sources
For further detail and to check the information: