use*_*754 12 svn version-control tortoisesvn ankhsvn visual-studio
当我尝试将文件Class1.cs重命名为VS内的class1.cs然后尝试通过ankhSVN提交项目时,我得到两个错误:
[...\Class1.cs] is already under version control.
The commit processing can't commit [...\Class1.cs], because it is not managed by Subversion. Maybe you should refresh the status after applying changes with another client?
Run Code Online (Sandbox Code Playgroud)
然后我删除了class1.cs,添加了一个新的class1.cs,尝试提交它但收到了同样的错误.我如何解决这个问题,以便我可以改变案例并仍能提交?我知道Windows是案例性的,但是不应该有一种(简单的)方法吗?
在与ankhSVN玩了一点之后,然后尝试使用其原始名称提交文件(所以我至少在版本控制中将其恢复)我得到了:
An internal error occured. Commit failed (details follow): Cannot commit: '[...]\Class1.cs' because it was moved to '[...]\class1.cs' which is not part of the commit; both sides of the move must be committed together
SharpSvn.SvnIllegalTargetException...
Run Code Online (Sandbox Code Playgroud)
我正在使用
Sel*_*wyn 12
您可以在Visual Studio + ankhSVN中执行此操作.
复制/粘贴要重命名的文件并将其粘贴到同一文件夹中
将文件从"Copy of xxxx"重命名为所需的新名称.
删除旧文件
右键单击两个文件所在的文件夹,并对整个文件夹执行svn commit操作.
而已!
| 归档时间: |
|
| 查看次数: |
5739 次 |
| 最近记录: |