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. :)
Written by Ben Visser
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Github
Authors
projectcleverweb
289.2K
jjperezaguinaga
90.23K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#