git global ignores

Set up a global ignores file for all git repos:

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

I use .gitignore-global instead of .gitignore since my home dir is already a git repo with its own .gitignore.

Thanks to Programblings.