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