As one can glean from other posts, Git's end-of-line normalization has its pros and cons. I have one particular Windows-only project where I think the best thing to do is to is to disable end-of-line normalization altogether. That is, I want to leave all newlines (most of which are CRLF
) intact, rather than have git normalize them to LF
-only behind the scenes, and I want that change to affect all clones of the repository on all machines. The question is the most effective way to do it.
Most discussions of Git end-of-line normalization are in terms of core.autocrlf
, and I could accomplish my goal by setting core.autocrlf=false
. However, this is a git-config setting, and I believe one has to set that separately on each machine by machine. If true, that seems error prone, especially since the msysgit
installer guides one into setting core.autocrlf=true
.