首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在subgit中正确映射分支/user/*

在subgit中正确映射分支/user/*
EN

Stack Overflow用户
提问于 2015-03-21 02:31:48
回答 1查看 110关注 0票数 0

我正在评估SubGit,它看起来导入得相当好,除了我们的SVN目录中有标准分支和非标准分支:

代码语言:javascript
复制
- trunk
- tags
- branches
  - test
  - JIRA_89
  - JIRA_92
  - user
    - jim
    - bob

有像branches/testbranches/JIRA_89这样的标准分支,但我们也有一些分支branches/user/jimbranches/user/bob

为subgit导入重命名这些用户分支的正确方法是什么?

EN

回答 1

Stack Overflow用户

发布于 2015-03-22 21:05:27

您可以使用此配置

代码语言:javascript
复制
trunk = trunk:refs/heads/master
branches = branches/*:refs/heads/*
branches = branches/users/*:refs/heads/users/*
shelves = shelves/*:refs/shelves/*
tags = tags/*:refs/tags/*

或者,如果您希望将branches/users/jim转换为refs/heads/james (并将branches/users/bob转换为refs/heads/robert),请使用以下配置

代码语言:javascript
复制
trunk = trunk:refs/heads/master
branches = branches/*:refs/heads/*
branches = branches/users/jim:refs/heads/james
branches = branches/users/bob:refs/heads/robert
branches = branches/users/*:refs/heads/users/*
shelves = shelves/*:refs/shelves/*
tags = tags/*:refs/tags/*

但请注意,在本例中,如果branches/jamesbranches/robert存在,则它们将不会被转换,因为refs/heads/jamesrefs/heads/robert名称已经被采用(但如果您想转换这些分支,也可以为它们添加特殊规则)。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29173498

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档