1、删除untracked的文件(有时候checkout分之后会有很多untracked的文件,一个一个的删除比较麻烦)
git status | xargs rm
2、删除一定条件下列出的文件
ls dir1 dir2 | grep "条件" | xargs rm -f
或者
find dir1 dir2 -name "*keyword*" -exec rm -f {} \;
如果要询问是否删除的话 把上面的-f 换成-i
3、更新目录下所有文件的时间戳
find . -type f |xargs ls -la
find . -type f |xargs touch
find . -type f |xargs ls -la