git clean -n
git clean -n | -f [-d]
Risk: Can lose work
What it does
Deletes untracked junk files.
When to use it
To tidy up. Always preview with -n first.
Example
$ git clean -nPreview only. Nothing is deleted.
$ git clean -fDelete them. Git can't bring them back.
$ git clean -fdUntracked folders too.
Learn it in: Clean up junk files · Official docs