“不一致的行结束样式"恶梦 [英] "Inconsistent line ending style" nightmare

查看:27
本文介绍了“不一致的行结束样式"恶梦的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一次提交 2447 个文件时,我完全陷入了 SVN 错误.我在 Windows 7 64 位上使用 TortoiseSVN(最新版本).

I'm completely stuck with an SVN error when committing 2447 files at once. I'm using TortoiseSVN (latest version) on Windows 7 64 bits.

事实是,有些文件是在 Mac 上创建的,而其他文件是在 PC 上创建的,因此 TortoiseSVN 以令人讨厌的Inconsistent lineending style 错误停止了提交.

The fact is that some files were created on Mac, and others on PC, so TortoiseSVN stopped the commit with an annoying Inconsistent line ending style error.

一开始,为了解决这个问题,我在NetBeans中手动打开了被指控的文件,添加了一个空格,删除它并保存文件,以便 NetBeans 正确转换所有行结束字符,但似乎不仅仅是一些文件"有罪.

In the beginning, to solve this problem, I manually opened the incriminated file in NetBeans, added one blank space, removed it and saved the file so NetBeans converted properly all line ending characters, but it seems there are more than "some files" incriminated.

推荐答案

在 Windows 7 下,您可以使用 Notepad++ v5.6.8 转EOL字符:

Under Windows 7, you can use Notepad++ v5.6.8 to convert EOL characters:

菜单编辑EOL 转换Windows/Unix/Mac

这篇关于“不一致的行结束样式"恶梦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆