LF will be replaced by CRLF 发表于 2021-09-26 更新于 2022-12-28 分类于 git 阅读次数: 97 1 分钟 LF和CRLF其实都是换行符。 LF是linux和Unix系统的换行符,CRLF是window系统的换行符。 Git提供了换行符自动转换的功能,默认开启,自动把代码里换行的方式转换成当前系统的换行方式。提交代码时,Git就会提示 LF will be replaced by CRLF in。 12git config core.autocrlf falsegit config --global core.autocrlf false