Git命令行修改AutoCRLF
Git命令行修改AutoCRLF
提交时转换为LF,检出时转换为CRLF(推荐windows)
git config --global core.autocrlf true
1.
提交时转换为LF,检出时不转换(推荐*unix/mac)
git config --global core.autocrlf input
1.
提交检出均不转换
git config --global core.autocrlf false
1.
Git命令行修改SafeCRLF
拒绝提交包含混合换行符的文件
git config --global core.safecrlf true
1.
允许提交包含混合换行符的文件
git config --global core.safecrlf false
1.
提交包含混合换行符的文件时给出警告
git config --global core.safecrlf warn
https://blog.51cto.com/cafeim/2476379

浙公网安备 33010602011771号