To remove all '.DS_STore' files in an existent git repo:
find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatchTo permanently ignore '.DS_STore' files in GIT repos:
echo .DS_Store >> ~/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global