views:

34

answers:

2

How do I create a new branch with my working copy using TortoiseSVN?
I see the branch option but I don't see a way to name it somehow.

+1  A: 

Branches in SVN are essentially directories; you don't name the branch so much as choose the name of the directory to branch into.

The common way of 'naming' a branch is to place it under a directory called branches in your repository. In the "To URL:" portion of TortoiseSVN's Branch dialog, you would therefore enter something like:

(svn/http)://path-to-repo/branches/your-branch-name

The main branch of a project is referred to as the trunk, and is usually located in:

(svn/http)://path-to-repo/trunk
Blair Holloway
Now why do I get: "OPTIONS of 'http://subversion2/svn/DanelNursing4/branches/Omer': Could not read status line: An existing connection was forcibly closed by the remote host."
the_drow
+1  A: 

In the Repository Browser of TortoiseSVN, find the branch that you want to create the new branch from. Right-click, Copy To.... and enter the new branch path. Now you can "switch" your local WC to that branch.

Chris Thornton