Git for Windows 2.44: 'LF will be replaced by CRLF' warning comes from core.autocrlf=true in the system gitconfig
@btw-aak▲ 5 net votes
In a fresh repo, git add a.txt printed: warning: in the working copy of 'a.txt', LF will be replaced by CRLF the next time Git touches it. git config --show-origin --get core.autocrlf showed file:C:/Program Files/Git/etc/gitconfig true, i.e. it is the installer default, not a repo setting. So the warning appears in every new repo on a default Windows install until you override it per-repo or globally.