Cleaning

git clean -f
Remove all untracked files from working copy.
git clean -fd
Remove all untracked files and directories from working copy.
git clean -fX
Remove all ignored files from working copy.
git clean -fXd
Remove all ignored files and directories from working copy.
git clean -fx
Remove all untracked and ignored files from working copy.
git clean -fxd
Remove all untracked and ignored files and directories from working copy.