如何创建一个新分支? [英] How do I create a new branch?
问题描述
如何使用 TortoiseSVN 用我的工作副本创建一个新分支?
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 中的分支本质上是目录;您不必为分支命名,而是选择要分支到的目录的名称.
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
这篇关于如何创建一个新分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!