Skip to content

Instantly share code, notes, and snippets.

@delor34n
Forked from brianmriley/git-remove-all-DS_Store
Created June 13, 2016 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save delor34n/3471ac858cc9ce22bed7faf9af80b34f to your computer and use it in GitHub Desktop.
Save delor34n/3471ac858cc9ce22bed7faf9af80b34f to your computer and use it in GitHub Desktop.
How Can I Remove .DS_Store Files From A Git Repository? Open terminal and run the following command from your git project root. http://stackoverflow.com/questions/107701/how-can-i-remove-ds-store-files-from-a-git-repository
find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment