“不一致的行结束样式"恶梦 [英] "Inconsistent line ending style" nightmare
问题描述
一次提交 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屋!