Relocating SVN working copy following branch rename

匿名 (未验证) 提交于 2019-12-03 03:06:01

问题:

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


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!