I know there are a ton of questions/answers similar to this one, however I could not find a specific answer to this problem. We are a .net shop and are using git.
I
You can try and test the -crlf
attribute in your .gitattributes
file:
*.cs -crlf
The .gitattributes man page also mentions -text
, but that would make your source files as binary (no diff).
Otherwise, core.eol are directives to use to control eol style.
It is more precise than core.autocrlf, which is presented here.