Need to restore a deleted branch in Subversion

前端 未结 7 632
悲&欢浪女
悲&欢浪女 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:04

    Assuming your last revision was 108:

    svn merge --revision 108:107
    svn diff 
    svn commit -m "Reverted revision 108"
    

    You can also add your source URL to the merge:

    svn merge --revision 108:107 http://svn/repo/
    

    Elsewhere on Stack Overflow: Undoing a commit in TortoiseSVN

提交回复
热议问题