我正在开发使用Aptana的ColdFusion网站。我们使用SVN进行版本控制。重命名文件,现在SVN不允许我提交?
我改名了几个文件,我现在试图去提交他们中的一个,但我发现了以下错误:
'SVN Commit' has encountered a problem.
org.apache.subversion.javahl.ClientException: Illegal target for the requested operation
svn: Commit failed (details follow):
svn: Cannot commit 'R:\myPath\My-New-File-Name.cfm' because it was moved from 'R:\myPath\My-Old-File-Name.cfm' which is not part of the commit; both sides of the move must be committed together
这似乎表明,我需要同时提交上一个文件(即被重新命名)和新的重命名文件在一起。我如何提交不再存在的文件...?
类似的问题:http://stackoverflow.com/questions/29563635/renamed-directory-now-svn-not-allow-me-to-commit/ – user1717259
Windows不区分大小写,如果你重命名你的文件只改变大小写,你会得到这个错误,所以重命名你的文件到另一个名字(例如file2 ),提交,然后重命名为您真正想要的名称并再次提交。 – Loenix