Definitively delete the tracking of .DS_Store files in GIT
This question already has an answer here:
How to make Git “forget” about a file that was tracked but is now in .gitignore?
2 Solutions collect form web for “Definitively delete the tracking of .DS_Store files in GIT”
You need to remove them from the repo using
git rm and then commit the changes.
git rm --cached "*.DS_Store" git commit -m "remove all .DS_Store"
You need to remove them in some way or another, using
git rm. Of course, this may be easier than going through them manually:
find -name .DS_Store -print0 | xargs -0 git rm