Search code examples
tortoisesvn

I Created a branch in the wrong place in Tortoise SVN and I now want to shift it


In Tortoise SVN I was intending to create a branch into /branches/NewBranch but accidentally created it in /trunk/NewBranch without noticing and have since committed many changes. How can I shift /trunk/NewBranch to /branches/?

I of course want to remove /trunk/NewBranch and have all the changes in the shifted branch /branches/NewBranch


Solution

  • I used the Tortoise SVN Gui. In the SVN Repo browser, I right-clicked on /trunk/NewBranch and and used "Copy to..." to copy it to /branches/NewBranch. I could then delete /trunk/NewBranch. I can now happily switch between /trunk and /branches/NewBranch. Everything seems as it should and hopefully, I've not overlooked something.