Creating a Global git ignore

I didn’t want to change every .gitignore for each project that I worked on at my company. I found this little trick.

echo "TODOs.org" >>  ~/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global