git仓库中文本换行符是LF,本地操作系统换行符是CRLF时如何处理
设置core.autocrlf可以解决。
参考:
newline - How line ending conversions work with git core.autocrlf between different operating systems - Stack Overflow
Git - Git Configuration (git-scm.com)
https://git-scm.com/docs/gitattributes