delete all untracked files

git clean -f
git clean -fdx

f   file

d  directory

x   .gitignore

原文地址:https://www.cnblogs.com/fenle/p/5659353.html