Quick git tip – global .gitignore

Another minor annoyance removed by a quick configuration change on my system. First, create a file ~/.gitignore_global and add configuration as normal for .gitignore. Then, do:

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

Voila! No need to see those omnipresent .DS_Store files from Finder in git’s output anymore!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s