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

posted on 2022-01-20 17:49  每天都要好好睡觉  阅读(98)  评论(0)    收藏  举报

导航