git rebase --continue出现“If there is nothing left to stage,chances are that something else already introduced the same changes; you might want to skip this patch.”

在git pull rebase的时候有冲突,在临时分支上找到冲突文件,解决冲突后,执行了git add .,然后执行git rebase --continue出现“If there is nothing left to stage,chances are that something else already introduced the same changes; you might want to skip this patch.”

 

 

解决方法

建议:先git log 将这次commit的版本号复制粘贴 保存下来,以防操作失误,丢失代码!

当前分支(开发分支A)
git commit -m '我要提交' git pull
--rebase ... 出现冲突,自动跳到了基于开发分支A的临时分支a 当前分支(临时分支a) 第一步:找到冲突文件,解决冲突 第二步:git add . 第三步:git rebase --continue 这个时候会出现“if there is nothing ....”,不用管它 第四步: git rebase --skip 这步执行后会自动跳回开发分支A 当前分支(开发分支A)
可以git log 看看当前最新的提交信息还是不是 “我要提交”,没有问题,就可以进行下面的步骤了 第五步:git pull
--rebase ... 第六步:git push ...

 

posted @ 2020-12-16 19:34  ellenxx  阅读(879)  评论(0编辑  收藏  举报