且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何创建一个新分支?

更新时间:2023-11-30 13:46:40

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.

命名"分支的常用方法是将其放在存储库中名为 branches 的目录下.因此,在 TortoiseSVN 的分支对话框的到 URL:"部分,您将输入如下内容:

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