If you want to set a global gitignore file, that would apply to all your repos, you can do so like this:
git config --global core.excludesfile '~/.gitignore'
Developer from somewhere
If you want to set a global gitignore file, that would apply to all your repos, you can do so like this:
git config --global core.excludesfile '~/.gitignore'