Skip to content

Instantly share code, notes, and snippets.

@ryanlindsey
Created August 23, 2012 22:55
Show Gist options
  • Save ryanlindsey/3443032 to your computer and use it in GitHub Desktop.
Save ryanlindsey/3443032 to your computer and use it in GitHub Desktop.
Remove .DS_Store from git repository
# Navigate to your repo
$ find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch
$ git config --global core.excludesfile ~/.gitignore
$ echo .DS_Store >> ~/.gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment