begin29
2/9/2017 - 8:14 AM

git remove untraked files

git remove untraked files

# show files that will be removed
git clean -n
# remove files
git clean -f
#To remove directories, run 
git clean -f -d #or git clean -fd
#To remove ignored files, run 
git clean -f -X #or git clean -fX
#To remove ignored and non-ignored files, run 
git clean -f -x #or git clean -fx