git config --global core.autocrlf false git config --global core.eol lf
Original Stack Overflow answer