Relocating SVN working copy following branch rename

后端 未结 2 1685
误落风尘
误落风尘 2021-02-15 15:47

Is there a way to alter the branch to which a working copy relates?

Another developer has renamed the branch im wokring on, so I cant commit any work any more.

C

相关标签:
2条回答
  • 2021-02-15 16:22

    From the working copy directory:

    svn switch http://server/svn/branches/newbranch
    
    0 讨论(0)
  • 2021-02-15 16:37

    You almost answered it yourself, you can do this by relocating:

    svn switch --relocate FROM TO
    

    for example

    svn switch --relocate http://server/svn/repos/branches/foo \
        http://server/svn/repos/branches/bar
    
    0 讨论(0)
提交回复
热议问题