Skip to content

Instantly share code, notes, and snippets.

@JoshuaCurry
Last active December 24, 2017 17:46
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 JoshuaCurry/afb2dca2bfa7bff2daba51a35eb7ce3a to your computer and use it in GitHub Desktop.
Save JoshuaCurry/afb2dca2bfa7bff2daba51a35eb7ce3a to your computer and use it in GitHub Desktop.
Remove .DS_Store and ._thing files macs make from git
git filter-branch --tree-filter 'find . -name "._*" -delete' -f HEAD
git filter-branch --tree-filter 'find . -name ".DS_Store" -delete' -f HEAD
# And now do git push --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment