git clean (11)

#delete untracked files

git clean -f

# delete untracked files and directories

git clean -fd


# -n option Don’t actually remove anything, just show what would be done

git clean -nf

git clean -nfd

原文地址:https://www.cnblogs.com/lianghong881018/p/12075989.html