In order to have the filter working for all repos, you may create a
.gitattributes_globalfile in your home. (in the same place where you have your global
.configfile. (you can normally find it under
The you need either to edit the global
.configfile by adding under the core section:
attributesFile = <path>/.gitattributes_globalwhere
<path>is your Home.
Or you can run the command
git config --global core.attributesFile <path>./.gitattributes_global
Not that if in a .config of a given repo you have override the value of attributesfile, it will ignore the global .gitconfig and thus the global gitattributes.