How do I create a new branch?
Solution 1
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 2
Right click and open SVN Repo-browser:
Right click on Trunk (working copy) and choose Copy to...:
Input the respective branch's name/path:
Click OK, type the respective log message, and click OK.
Solution 3
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 4
My solution if you work with the Trunk/
and Release/
workflow:
Right click on Trunk/
which you will be creating your Branch from:
Select Branch/Tag:
Type in location of your new branch, commit message, and any externals (if your repository has them):
the_drow
My name is Omer Katz and I am a very passionate software developer who specializes in ALM & SCM practices. I'm also an Agile & Lean enthusiast and practitioner. I am only 23, therefor I have only started working in the industry in 2010 but I have been programming since I was 11 and I have never stopped being passionate about it. I have a vast knowledge when it comes to planning, designing, developing & delivering software. My greatest passion is finding new ways to make the developers' lives easier and let them focus on what they know to do best, software development.
Updated on July 17, 2022Comments
-
the_drow almost 2 years
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.
-
the_drow almost 14 yearsNow why do I get: "OPTIONS of 'subversion2/svn/DanelNursing4/branches/Omer': Could not read status line: An existing connection was forcibly closed by the remote host."
-
lode over 9 yearsAfter this step, if you want to access the files of the revision, get the right click menu of the tags/branch folder. choose: SVN Update. Only then, the folder of Version2.45.5 is copied with its files in the folder.
-
Peter Mortensen over 8 yearsIsn't "To URL:" now "To path:"?
-
NealWalters about 6 years"Copy to... " does not appear on my menu - Versio n1.9.5 Build 27581
-
HPWD about 6 years@NealWalters - this may vary on the Windows SVN client you are using. On mine, I have "SVN Branch/Tag". If you don't see that either, then check go into the settings of your SVN client and check what options are enabled for the "Context Menu".