码迷,mamicode.com
首页 > 其他好文 > 详细

git add . 的时候遇到warning: LF will be replaced by CRLF inXXX 解决办法

时间:2017-11-26 11:00:42      阅读:1004      评论:0      收藏:0      [点我收藏+]

标签:hit   add   director   ace   crlf   ocr   cache   replace   cto   

$ git add .
warning: LF will be replaced by CRLF in shop/Runtime/Cache/86bbc820c9ec1 d314a9c71cf5651d98a.file.showlist.html.php. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in shop/Runtime/Cache/b62273c43ffc6 23554cccb888c7b4cd5.file.tianjia.html.php. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in shop/Runtime/Cache/cd1a830b5cc3a 2d001883e22cb7c27dc.file.showlist.html.php. The file will have its original line endings in your working directory.

解决方法:

git config --global core.autocrlf false

原因:

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

 

git add . 的时候遇到warning: LF will be replaced by CRLF inXXX 解决办法

标签:hit   add   director   ace   crlf   ocr   cache   replace   cto   

原文地址:http://www.cnblogs.com/pyspang/p/7897360.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!