Remove .DS_STORE from a Git Repo

$ cd path/to/repo
$ find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch

Once everything is removed, make sure that .DS_STORE will not be added to the repo in the future. Add the following line to the .gitignore file

.DS_STORE

Commit and push as usual

Doc created on 19 Dec 14

© Ted Hagos. All Rights Reserved

osx

HOME