See: GIT: When checking out an alternative branch, I want to clear ignored files
I believe you're looking for the git clean
command. If you do a quick git clean -nd <path>
, it will list all the un-tracked / deleted files that will be deleted upon a real run of the command.
If you're sure that includes all the files you want to delete, perform a git clean -df <path>
.
Reference: http://gitready.com/beginner/2009/01/16/cleaning-up-untracked-files.html