git 提交报错 : The file will have its original line endings in your working directory.

报错:

应该是不同系统对换行的识别不到位导致的

就常识来说文件是在windows下生成的所以换行和 linux 确实不同可能是因为这个导致的

 

 解决:

 cmd中输入: git config --global core.autocrlf false

 重新 git  add 即可

posted @ 2022-02-18 17:45  云里知音  阅读(144)  评论(0编辑  收藏  举报