Renaming a Branch in SVN
What happens when you have a branch that you’re working in that has stuff in it that really doesn’t belong with the name. I mean, naming is one of things that can be the most tricky.
Is renaming a branch hard? Nope.
- Fire up the repo-browser.
- Right click on the branch you want to rename.
- Specify the name you want it to have.
- Specify a note for why you changed.
Bingo!
Ahh, but now the fun beings. If you have a local folder on your file system, it probably points to the old repository folder. That means that you’ll have to do a SVN Checkout to get the new folder and merge any outstanding changes (you did check in everything before you did this, right?)
After doing this, you should be ready to go. Again, that wasn’t so difficult and you have all of your checkin history preserved.