Skip to content

Instantly share code, notes, and snippets.

@alihalabyah
Created July 10, 2015 11:17
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 alihalabyah/51d4a9372dcaf31ae474 to your computer and use it in GitHub Desktop.
Save alihalabyah/51d4a9372dcaf31ae474 to your computer and use it in GitHub Desktop.
Git remove .DS_Store files
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
## add .DS_Store to .gitignore
git add .gitignore
git commit -m '.DS_Store banished!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment