


You should use this for files that must keep LF endings, even on Windows. text eol=lf Git will always convert line endings to LF on checkout. You should use this for files that must keep CRLF endings, even on OSX or Linux.

Text eol=crlf Git will always convert line endings to CRLF on checkout. This is the recommended setting for Windows developers since CRLF is the native line ending for Windows. With autocrlf true, files will be checked out as CRLF locally with git, but whenever you commit files, all instances of CRLF will be replaced with LF. “The solution was to make the newline two characters: CR to move the carriage to column one, and LF to move the paper up.” In fact, it was often necessary to send extra characters-extraneous CRs or NULs-which are ignored but give the print head time to move to the left margin. Why does Windows have different line endings?
