vz6ymw
Last Updated: February 25, 2016
·
7.499K
· 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. :)