设置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) 收藏 举报