使用git add文件时出现“warning: LF will be replaced by CRLF” 的提示。 查询后设置core.safecrlf=false,命令如下 $ git config --global core.safecrlf false 表示允许提交包含混合换行符的文件