Git
From wiki
Config
Global gitignore
It is possible to use a global .gitignore file. This allows to ignore the file saved by your IDE or other tools that you use locally.
$ mkdir -p ${XDG_CONFIG_HOME:-$HOME/.config}/git
$ vi ${XDG_CONFIG_HOME:-$HOME/.config}/git/ignore