Need to restore a deleted branch in Subversion

前端 未结 7 636
悲&欢浪女
悲&欢浪女 2020-12-07 16:14

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

7条回答
  •  执念已碎
    2020-12-07 17:07

    Use:

    svn cp [path to deleted branch]@[revision before delete] [new path]
    

    For example:

    svn cp svn://myrepo.com/svn/branches/2.0.5@1993 \
           svn://myrepo.com/svn/branches/2.0.5_restored
    

    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...

提交回复
热议问题