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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章