Replacing trunk with branch in Subversion

前端 未结 6 696
梦谈多话
梦谈多话 2020-12-25 11:25

Let\'s say people have been working on the trunk and on a branch of a Subversion repository. I want to discard any changes on the trunk, and replace it with a copy of the br

6条回答
  •  春和景丽
    2020-12-25 12:02

    Though its a pretty old thread but still sharing my experience

    We recently did this for one of our projects and followed guidelines as:

    svn copy   -m "copied old trunk as tag"
    
    svn delete  -m "deleted trunk temporarily"
    
    svn copy   -m "placed new trunk with features"
    

    Following these steps kept the trunk history intact and replace the new feature branch as trunk.

提交回复
热议问题