warning: LF will be replaced by CRLF in
git add .报警告
git add .
warning: LF will be replaced by CRLF in app/Helper/Dshc/DshcServer.php.
The file will have its original line endings in your working directory
不同系统中换行不一致出的问题
解决办法
git config --global core.autocrlf true
git config core.autocrlf true
如果还是有警告 加配置
git config core.safecrlf false
就可以了
AutoCRLF
#提交时转换为LF,检出时转换为CRLF
git config --global core.autocrlf true
#提交时转换为LF,检出时不转换
git config --global core.autocrlf input
#提交检出均不转换
git config --global core.autocrlf false
SafeCRLF
#拒绝提交包含混合换行符的文件
git config --global core.safecrlf true
#允许提交包含混合换行符的文件
git config --global core.safecrlf false
#提交包含混合换行符的文件时给出警告
git config --global core.safecrlf warn