Please Add .gitattributes To Your Git Repository

Open link in next tab

πŸ™ Please Add .gitattributes To Your Git Repository

https://dev.to/deadlybyte/please-add-gitattributes-to-your-git-repository-1jld

Article explaining why .gitattributes is important for configuring a consistent end of file ending in a git repository used by multiple team members on different OSes.

πŸ™ Please Add .gitattributes To Your Git Repository
See all comments
β€’

If you use a programming language which behaviour depends on the symbols that you hiding 90% of the time (I am talking about line ends and whitespace types) you will have a bad time. No amount of gitattributing or autocrlf magic will save you. You will suffer and you will get a phantom bugs if your editor and diff viewer will not show you "whitespace" changes.

And at the same time any programming language that will break due to whitespace should be chastised and laugh upon. Whitespace type should never be significant modifier for behaviour.

Also YAML can fuck off right into the sun.