【问题标题】:How to keep working on a branched branch with --no-ff?如何使用--no-ff 继续在分支分支上工作?
【发布时间】:2019-03-12 01:27:22
【问题描述】:

我从另一个分支dev 创建了一个分支feature,并使用these instructions 将它与--no-ff 合并,最终得到如下图所示的树(但不是“主”而是它的dev):

现在我对feature 做了更多的工作,并希望将其推送到feature 分支(如上图中feature 序列中的下一个黄色点)。我是否继续在这个分支分支上使用

$ git push origin feature

或者我必须这样做

$ git checkout dev
$ git merge --no-ff feature

每次我要推送到feature?我想将feature 分开。

【问题讨论】:

    标签: git command-line git-branch


    【解决方案1】:

    每次添加更多提交时,您不必将dev 合并回feature
    您只需添加这些提交并推送您的feature 分支。

    如果您想检查那里的一切是否仍在工作,您仍然应该在本地合并 featuredev

    【讨论】:

      猜你喜欢
      • 2014-11-19
      • 2013-08-04
      • 1970-01-01
      • 2014-01-23
      • 2016-10-14
      • 2021-02-05
      • 2018-08-25
      • 2012-01-18
      • 2019-09-06
      相关资源
      最近更新 更多