- Remove current File
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
- Add
git add .gitignore
- Commit the changes
git commit -m '.DS_Store banished!'
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
git add .gitignore
git commit -m '.DS_Store banished!'