代码之家  ›  专栏  ›  技术社区  ›  Indrakumara

Git只在两个标记之间合并一个分支到另一个分支

  •  1
  • Indrakumara  · 技术社区  · 6 年前

    我需要从一个分支合并到另一个分支,但只能在Git中选定的标记之间合并

    1 回复  |  直到 6 年前
        1
  •  4
  •   VonC    6 年前

    据我所知,cherry pick只能合并选定的提交,而不能合并提交集

    git cherry-pick 可以应用 设置 How to cherry pick a range of commits and merge into another branch? "

    就你而言:

    git cherry-pick tag1^{}..tag2^{}
    

    {}^ dereference notation .
    tag1