开发者

How do I create a new branch?

开发者 https://www.devze.com 2023-01-03 14:43 出处:网络
How do I create a new branch with my开发者_JAVA百科 working copy using TortoiseSVN? I see the branch option, but I don\'t see a way to name it somehow.Right click and open SVN Repo-browser:

How do I create a new branch with my开发者_JAVA百科 working copy using TortoiseSVN?

I see the branch option, but I don't see a way to name it somehow.


Right click and open SVN Repo-browser:

How do I create a new branch?

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

How do I create a new branch?

Input the respective branch's name/path:

How do I create a new branch?

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


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.


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


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

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

How do I create a new branch?

Select Branch/Tag:

How do I create a new branch?

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

How do I create a new branch?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号