当前位置: 代码迷 >> 综合 >> git add报The file will have its original line endings in your working directory
  详细解决方案

git add报The file will have its original line endings in your working directory

热度:78   发布时间:2023-10-23 16:25:28.0

输 入 git add * 后出现

warning: LF will be replaced by CRLF in ......The file will have its original line endings in your working directory.

解决方法:

git config --global core.autocrlf false

就可以解决了。

原因就是:

原因是路径中存在 / 的符号转义问题,false就是不转换符号默认是true,相当于把路径的 / 符号进行转义,这样添加的时候就有问题

 

To be continued...

  相关解决方案