Skip to content

Instantly share code, notes, and snippets.

@GoncaloPT
Last active July 28, 2020 18:34
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 GoncaloPT/9ccfad9df718f57e5f565f7df0cacb3b to your computer and use it in GitHub Desktop.
Save GoncaloPT/9ccfad9df718f57e5f565f7df0cacb3b to your computer and use it in GitHub Desktop.
Remove .DS_Store files from a Git repository?
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
echo .DS_Store >> .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