Skip to content

Instantly share code, notes, and snippets.

@islandjoe
Last active October 17, 2016 09:41
Show Gist options
  • Save islandjoe/c97031eeaa57de11f0d69347a74e2046 to your computer and use it in GitHub Desktop.
Save islandjoe/c97031eeaa57de11f0d69347a74e2046 to your computer and use it in GitHub Desktop.
Remove '.DS_Store' files from git repository
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
git add .gitignore
git commit -m 'Removed all .DS_Store'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment