Skip to content

Instantly share code, notes, and snippets.

@jareha
Forked from vybstat/ds_store_removal
Last active February 8, 2022 16:38
Show Gist options
  • Save jareha/613c574fe90cec78201fcd5a926c2e73 to your computer and use it in GitHub Desktop.
Save jareha/613c574fe90cec78201fcd5a926c2e73 to your computer and use it in GitHub Desktop.
Remove `.ds_store` files created by macOS from local `git` repo
# Find and remove `.ds_store` files from local `git` repo
find . -name .ds_store -print0 | xargs -0 git rm -f --ignore-unmatch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment