Create and commit a .gitattributes with
* text eol=lf
Note the lack of . in the first line. It matches all files, says they're
text, and says their EOL is Unix-style LF only (as opposed to Windows CRLF
or very old Mac CR).
Add exceptions as they're found. This would be a good start:
* text
Hi,
We are having some undesired differences in git commits because of line
endings[1]. Depending on the operating system and the text editor you use,
the newline character may end up being changed.
Can the repository configuration be modified to avoid this issue? Or can
somebody recommend a