Last Updated: February 25, 2016
·
11.77K
· tanq

How to globally gitignore .DS_Store

Make a global gitignore file somewhere:

echo .DS_Store > ~/.gitignore_global

Configure git so that it uses your global gitignore file:

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

No more .DS_Store cluttering your github repos. :)