【问题标题】:single commit from one branch onto another [duplicate]从一个分支到另一个分支的单个提交[重复]
【发布时间】:2012-09-02 06:13:46
【问题描述】:

可能重复:
How do I merge a specific commit from one branch into another in Git?

我是 git 的新手。有一个问题:如果我想从一个分支向另一个分支提交一次提交,我应该使用什么命令?提前谢谢。

【问题讨论】:

    标签: git


    【解决方案1】:

    类似: git cherry-pick 575f9b1a75673067830bb224ee09b201923093a6

    git cherry-pick my-branch(获取 my-branch 上的最高提交)。

    【讨论】:

      【解决方案2】:

      【讨论】:

        猜你喜欢
        • 2011-05-06
        • 1970-01-01
        • 2021-04-10
        • 2018-08-12
        • 2021-03-22
        • 2018-12-19
        • 2016-03-23
        • 2017-07-16
        • 2019-03-17
        相关资源
        最近更新 更多