错误码:
remote: Wrong EOL found
remote: The following files have wrong EOL-style:
remote: Please, take a look at http://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#Formatting-and-Whitespace for more information
当你git push 遇到这个错误时,可能是因为代码仓库用行尾符代码格式检测导致的
解决方案1:
用Notepad++打开不能提交的文件
编辑--》文件格式转换--》(可选Windows-CRLF、Unix-LF 、Mac-CR中的一种)
要设置显示换行符,这个才能看到效果, 视图--》显示符号--》显示行尾符。
解决方案2:
如果是windows系统,可以用记事本替换,应该是按下ctrl+H(菜单也有),会弹出一个窗口,然后将^p(即CR),替换成^l(即LF)
如果不是这个问题,请查看
http://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#Formatting-and-Whitespace