【问题标题】:How to merge in master?如何合并到master?
【发布时间】:2014-07-28 18:32:55
【问题描述】:

我基于 master 的另一个子分支“score”创建了一个分支“feature200”。现在我落后于 master 103 次提交。

我是将master合并到“feature200”还是将“feature200”合并到master?此外,feature200 需要通过 github 上的拉取请求获得批准,因此在回答时请记住这一点。

分支机构 master > score > feature200

feature200 是 master 后面的 103 次提交,我需要将 master 代码放入 feature200,然后提交 feature200 的拉取请求。

希望我说的没错。

【问题讨论】:

    标签: git github merge


    【解决方案1】:

    要遵循的步骤:

    1. git checkout 大师
    2. git 拉
    3. git checkout feature200
    4. git rebase 大师
    5. git checkout 大师
    6. git 合并功能

    有了这个,您就拥有了 Master 上的所有更改(103 个 feature200 提交)以及最新的 Master 更改(最新拉取的更改)

    【讨论】:

      猜你喜欢
      • 2018-04-14
      • 2021-03-06
      • 1970-01-01
      • 2013-01-14
      • 2021-05-02
      • 1970-01-01
      • 2017-06-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多