Skip to content

Instantly share code, notes, and snippets.

@brianmriley
Last active April 9, 2021 08:34
Show Gist options
  • Save brianmriley/6625425 to your computer and use it in GitHub Desktop.
Save brianmriley/6625425 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