通过查询后发现出现这个问题主要原因是:
此时只需要执行如下代码:
git rm -r --cached .
git config core.autocrlf false
git add .
参考链接:https://blog.csdn.net/liereli/article/details/80824804
希望对你有帮助!
解决git报错“The file will have its original line endings in your working directory”的方法
原文:https://www.cnblogs.com/zhahuhu/p/11587491.html