Relocating SVN working copy following branch rename

后端 未结 2 1809
误落风尘
误落风尘 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条回答
  •  萌比男神i
    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
    

提交回复
热议问题