Create a .gitattributes file in the project root containing:
.gitattributes
* -text
This is equivalent to setting core.autocrlf = false.
core.autocrlf = false