You could use `git config --global core.autocrlf false` to disable it.