A global .gitignore is one of the first things I install on a new machine - and then I never think of it again.
$ git config --global core.excludesfile ~/.gitignore