参考:https://stackoverflow.com/questions/1967370/git-replacing-lf-with-crlf
vi/vim 编辑文件
:set ff=unix
:x
用git批量修改
git config –global core.autocrlf true
git init
git add .
git commit -m “..”
git config –global core.autocrlf true
git rm –cached -r .
git reset –hard
感谢景帅!
原文链接:https://www.f2er.com/bash/389311.html