Adam K Dean

Remove .DS_Store from git repository

Published on 5 August 2014 at 17:30 by Adam

The following will help you remove .DS_Store from your git repository.

$ find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch
$ echo ".DS_Store" >> .gitignore
$ git add .gitignore
$ git commit -m ".DS_Store removed from repository"

Now you can relax.



This post was first published on 5 August 2014 at 17:30. It was filed under archive with tags git, osx, dsstore.