美文网首页
无标题文章

无标题文章

作者: 晚安呢太阳 | 来源:发表于2019-07-17 12:04 被阅读0次

    # 解决rebase后丢掉子分支的merge commit的解决方法

    1. 首先rebase前commit如下,有三个branch:master,test-rebase-main-branch, test-rebase-sub-branch

    分支图

    2. 经过如下操作:git rebase master test-rebase-main-branch --rebase-merges,git checkout master,  git merge test-rebase-main-branch --no-ff,然后删除分支test-rebase-sub-branch, 分支图变为

    相关文章

      网友评论

          本文标题:无标题文章

          本文链接:https://www.haomeiwen.com/subject/ptdfyttx.html