SmartSVN:File has inconsistent newlines

用SmartSVN提交文件的时候,提示svn: File has inconsistent newlines

这是由于要提交的文件编码时混合了windows和unix符号导致的。

解决方案

SmartSVN设置做如下修改可以解决问题:

  • Project–>Setting
  • 选择Working copy下的EOL-style
  • 将Default EOL-style设置为 As is(no conversion)
  • 点击OK按钮

还有一个相似的问题,svn: E135000: Inconsistent line ending style

通过下面的命令可以转换文件格式即可
<code>dos2unix filename</code>

原文地址:https://www.cnblogs.com/googlegis/p/9680105.html