[Git add . ] 遇到The file will have its original line endings in your working directory 解决办法

1.在新项目中使用[ git add . ]时出现:

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

解决办法为:

1 git config --global core.autocrlf false

2.出现上述原因为:

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

完毕 !

上一篇:BZOJ2055 80人环游世界 网络流 费用流 有源汇有上下界的费用流


下一篇:【Cannot start process,the working directory "文件路径" does not exist】错误解决方案