Convert carriage returns from Windows (CRLF) to LF
Done with:

find . -type f \! -path \*/\.git/\* -exec dos2unix {} \;