12

Is it possible to replace the trunk with a branch using TortoiseSVN?

4

2 回答 2

10

Move the current trunk to some other place (/branch/oldtrunk), then move /branch/mybranch to /trunk, then move /branch/oldtrunk to /branch

With the command line client, this can be done with:

svn mv http://path/to/repo/trunk http://path/to/repo/branch/oldtrunk
svn mv http://path/to/repo/branch/mybranch http://path/to/repo/trunk
svn mv http://path/to/repo/branch/oldtrunk http://path/to/repo/branch/mybranch

Good luck!

于 2013-04-15T15:37:12.593 回答
1

From Tortoise svn, You can go to trunk, right click and select Copy to.

then, it will ask the url. So, you can put your branch url there.

于 2013-04-16T08:03:40.910 回答