Skip to content

Instantly share code, notes, and snippets.

@Andsbf
Last active December 3, 2015 22:15
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 Andsbf/bfc353895c351d7344fb to your computer and use it in GitHub Desktop.
Save Andsbf/bfc353895c351d7344fb to your computer and use it in GitHub Desktop.
Make Git always ignore .DS_store file

Make Git never ask you again about .DS_Store

In the terminal:

echo .DS_Store > ~/.gitignore_global

Now 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