赞
踩
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/Presentation.Seedwork/Resources/MessThe file will have its original line endings in your working directory.
分析问题:系统换行符不同导致,git是linux规范。
Window下的命令换行符是\r\n;Git 本身采用的规范是linux规范,也就是说文件在存储的时候,会有一些转换,一旦文件中有一些\r\n符号的话,它都会帮你换成\n。
解决方案:
运行git命令:- git config core.filemode false
-
- git config core.eol lf
原理是:给你本地的repo设置一下。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。