需要在Subversion中还原已删除的分支 [英] Need to restore a deleted branch in Subversion

查看:81
本文介绍了需要在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...

此处是一些很好的文档...

Here is some good documentation...

必须使用某种方式在用户名中转义 @ 符号...

There must be some way of escaping the @ symbol in the username...

这篇关于需要在Subversion中还原已删除的分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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