Rename a branch in SVN

If you made a typo or a similar mistake when naming your new branch, and you want to rename it, is very simple:

svn move http://svn.domain.com/project/branches/old/ http://svn.domain.com/project/branches/new

Remember to switch any working copies of the old branch though:

svn switch http://svn.domain.com/project/branches/new

 

3 comments on “Rename a branch in SVN

  1. Zaskiaa February 29, 2016 9:12 am

    You really saved my skin with this intamrofion. Thanks!

  2. Jarom July 21, 2016 12:58 am

    Thanks this really helped me out! Jarom

  3. Josh October 26, 2017 4:01 pm

    I didn’t realize that ‘svn mv’ could be applied to an entire branch. Your post gave me the quick fix I needed.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>