Organizations or users may have Git attributes they wish to apply to all repositories used on their computer user account. Similar to user global .gitignore, user global .gitattributes can be used to apply Git attributes to all user repositories:
git config --global core.attributesfile ~/.gitattributes
A Git attributes example application is picking distinct “git diff” commands for different languages. Additional .gitattributes templates are available for inspiration.