Skip to content

Instantly share code, notes, and snippets.

@Alexisvt
Forked from brianmriley/git-remove-all-DS_Store
Created February 19, 2018 21:54
Show Gist options
  • Save Alexisvt/8e82a621229687f82890fbfd8338e2dd to your computer and use it in GitHub Desktop.
Save Alexisvt/8e82a621229687f82890fbfd8338e2dd 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