Git: Delete Untracked Files

By Xah Lee. Date: .
git clean -d -x -f
-d
Delete untracked dirs
-x
ignore the .gitignore file. Delete them.
-f
force it

git FAQ