Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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