Remove .DS_Store from git repository

adamkdean

Adam K Dean

Posted on August 5, 2014

Remove .DS_Store from git repository

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.

💖 💪 🙅 🚩
adamkdean
Adam K Dean

Posted on August 5, 2014

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related