Create a .gitattributes file in the project root containing:

* -text

This is equivalent to setting core.autocrlf = false.