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

换了太电脑,通过git添加项目的时候,却报:
执行git add 项目之后出现

The file will have its original line endings in your working directory.

解决方法:
git config –global core.autocrlf false
原因就是:

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

https://blog.csdn.net/wxl1555/article/details/53033739
我这里只是做记录。

猜你喜欢

转载自blog.csdn.net/wwrzyy/article/details/80799537