How do I create a new branch?

SvnTortoisesvnBranch

Svn Problem Overview


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.

Svn Solutions


Solution 1 - Svn

Right click and open SVN Repo-browser:

Enter image description here

Right click on Trunk (working copy) and choose Copy to...:

Enter image description here

Input the respective branch's name/path:

Enter image description here

Click OK, type the respective log message, and click OK.

Solution 2 - Svn

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.

Solution 3 - Svn

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

Solution 4 - Svn

My solution if you work with the Trunk/ and Release/ workflow:

Right click on Trunk/ which you will be creating your Branch from:

Trunk

Select Branch/Tag:

Branch/Tag

Type in location of your new branch, commit message, and any externals (if your repository has them):

enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionthe_drowView Question on Stackoverflow
Solution 1 - SvnBJ PatelView Answer on Stackoverflow
Solution 2 - SvnChris ThorntonView Answer on Stackoverflow
Solution 3 - SvnBlair HollowayView Answer on Stackoverflow
Solution 4 - SvnAndy JView Answer on Stackoverflow