Git rebase merge conflict cannot continue

后端 未结 5 1379
小蘑菇
小蘑菇 2021-01-30 02:21

I\'m trying to rebase \'dev\' to catch up to \'master\' branch.

$ git checkout dev 
$ git rebase master 
First, rewinding head to replay your work on top of it.         


        
5条回答
  •  迷失自我
    2021-01-30 02:39

    Note: Git 2.0.2 (July 2014) has fixed one case where a git rebase --skip would get stuck and wouldn't be able to go on with the current rebase.
    See commit 95104c7 by brian m. carlson (bk2204)

    rebase--merge: fix --skip with two conflicts in a row

    If git rebase --merge encountered a conflict, --skip would not work if the next commit also conflicted.
    The msgnum file would never be updated with the new patch number, so no patch would actually be skipped, resulting in an inescapable loop.

    Update the msgnum file's value as the first thing in call_merge.
    This also avoids an "Already applied" message when skipping a commit.
    There is no visible change for the other contexts in which call_merge is invoked, as the msgnum file's value remains unchanged in those situations.

提交回复
热议问题