Relocating SVN working copy following branch renam

2020-06-16 03:30发布

问题:

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.

Could I just edit all the .svn directory files to point to the new location?

回答1:

From the working copy directory:

svn switch http://server/svn/branches/newbranch


回答2:

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


标签: svn