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

 

 

在执行 git add .时 报以上错误

原因:

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

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

 

解决:

git config --global core.autocrlf false

posted @ 2020-01-21 10:52  KenChung  阅读(146)  评论(0编辑  收藏  举报