Skip to content

Instantly share code, notes, and snippets.

@artemartemov
Last active October 21, 2018 20:53
Show Gist options
  • Save artemartemov/0adebec280562d946f047667df0a7e39 to your computer and use it in GitHub Desktop.
Save artemartemov/0adebec280562d946f047667df0a7e39 to your computer and use it in GitHub Desktop.
Global .gitignore for removing .DS_Store cause it's annoying af
  1. make a global .gitignore file somewhere

echo .DS_Store >> ~/.gitignore_global

  1. tell git to use it for all repositories

git config --global core.excludesfile ~/.gitignore_global

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment