Git rebase merge conflict cannot continue

后端 未结 5 1380
小蘑菇
小蘑菇 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:42

    One of the times that I have run into this issue is when doing a git commit after a git add. So, the following sequence will produce the rebase error you mention:

    git add
    git commit -m ""
    git rebase --continue

    While, the sequence below runs without any errors, and continues the rebase:
    git add
    git rebase --continue

    It might be possible that git add -A with the "All" option is creating a similar situation. (Please note, I am very inexperienced in git, so this answer may not be correct.) To be safe, the git rebase --skip seems to also work well in this situation.

提交回复
热议问题