Skip to content
  • In order to have the filter working for all repos, you may create a .gitattributes_global file in your home. (in the same place where you have your global .config file. (you can normally find it under ~/)

    The you need either to edit the global .config file by adding under the core section: attributesFile = <path>/.gitattributes_global where <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.

    Edited by Basile Chatillon
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment