一. 删除原有的.DS_Store
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
vi .gitignore
#增加一行.DS_Store
三. 提交到git
git add .gitignore
git commit -m '.DS_Store banished!'
一. 删除原有的.DS_Store
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
#增加一行.DS_Store
三. 提交到git
git add .gitignore
git commit -m '.DS_Store banished!'