如何创建新分支? [英] How do I create a new branch?

查看:93
本文介绍了如何创建新分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用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.

命名分支的常用方法是将其放在目录下。存储库中名为分支机构的目录。因此,在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

项目的主要分支被称为 trunk ,通常位于以下位置:

The main branch of a project is referred to as the trunk, and is usually located in:

(svn/http)://path-to-repo/trunk

这篇关于如何创建新分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆