If you are unsure which rules to list in your .gitattributes file, or you just want to add generally accepted attributes to your project, you can shoose or generate a .gitattributes file at:
https://gitattributes.io/
https://github.com/alexkaratarakis/gitattributes