【问题标题】:How can I merge 2 branches in my local repository如何在本地存储库中合并 2 个分支
【发布时间】:2010-05-06 04:57:16
【问题描述】:

我的 hg 存储库中有 2 个分支: 1. 默认 2. 新功能

我尝试了以下操作:https://www.mercurial-scm.org/wiki/NamedBranches, 我通过'hg update -c default'切换回默认值 但是如何将“新功能”中的提交合并到“默认”。

我做了“hg pull new-feature”,它说“repository new-feature not found”!

谢谢。

【问题讨论】:

    标签: mercurial merge


    【解决方案1】:

    一旦您在default 分支(使用hg update default),只需执行以下操作:

    hg merge new-feature
    

    此命令将合并new-feature 分支上的default 分支。如果有任何冲突,Mercurial 会告诉您。

    【讨论】:

      猜你喜欢
      • 2020-04-06
      • 1970-01-01
      • 2014-02-17
      • 2017-02-03
      • 2015-02-02
      • 2015-03-25
      • 1970-01-01
      • 2016-07-20
      • 2016-03-16
      相关资源
      最近更新 更多