需要在 Subversion 中恢复已删除的分支 [英] Need to restore a deleted branch in Subversion
本文介绍了需要在 Subversion 中恢复已删除的分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个 Subversion 存储库的工作副本,一个是主干,另一个是我创建的分支.
I have two working copies of a Subversion repository, one of the trunk, and one of a branch I created.
我不小心删除了存储库浏览器中的分支.如何恢复分支?有没有办法撤消整个存储库的最新提交?
I accidentally deleted the branch in a repository browser. How do I restore the branch? Is there a way to undo the most recent commit for the whole repository?
推荐答案
使用:
svn cp [path to deleted branch]@[revision before delete] [new path]
例如:
svn cp svn://myrepo.com/svn/branches/2.0.5@1993
svn://myrepo.com/svn/branches/2.0.5_restored
其中1993是删除前的修订版...
Where 1993 is the revision before the delete...
这里有些不错文档...
必须有某种方法可以转义用户名中的 @
符号...
There must be some way of escaping the @
symbol in the username...
这篇关于需要在 Subversion 中恢复已删除的分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文