Skip to content

Instantly share code, notes, and snippets.

@lpheller
Created November 11, 2020 08:51
Show Gist options
  • Save lpheller/5d977e0108464f03c42d46b2b0cd64ca to your computer and use it in GitHub Desktop.
Save lpheller/5d977e0108464f03c42d46b2b0cd64ca to your computer and use it in GitHub Desktop.
Globally ignore .DS_Store files
# Quick and easy one line command to setup a global .gitignore file and ignore macOS .DS_store files globally
git config --global core.excludesfile "~/.gitignore" && echo .DS_Store >> ~/.gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment