MacOS 下删除 `.DS_Store` 文件

删除当前目录下的 .DS_Store 文件

sudo find ./ -name ".DS_Store" -depth -exec rm {} \;

删除已提交 git 仓库的 .DS_Store 文件

find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章