Skip to content

Instantly share code, notes, and snippets.

@samiare
Last active May 25, 2016 14:03
Show Gist options
  • Save samiare/5a8eb1a4d83bc2274529 to your computer and use it in GitHub Desktop.
Save samiare/5a8eb1a4d83bc2274529 to your computer and use it in GitHub Desktop.
Remove pesky .DS_Store files
In Terminal
===========
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
-or?-
git rm -r --cached .
git add .
git commit -m "fixed untracked files"
In .gitignore file
==================
.DS_Store
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment