VSCode种git rebase分支冲突解决无法继续rebase

情景:

常规来说我们git开分支开发完新功能之后,提交之前rebase dev分支,然后合并到dev上算是开发完成。

问题还原:

在开发完之后执行如下指令:

1.执行变基操作:git rebase dev。

//这一步出现冲突vscode上处理冲突,点击添加(相当于add,下图1 "+");vscode上点击"继续(下图1 Continue)"直接弹框报错(下图2)
图1

图2

//按照理想步骤 处理完冲突执行git rebase --continue就完事的,实际上执行会报错如下,无法进行下一步:

javascript 复制代码
PS D:\game\client_new_skin> git rebase --continue
Applying: 处理马甲包交互函数
No changes - did you forget to use 'git add'?
If there is nothing left to stage, chances are that something else
already introduced the same changes; you might want to skip this patch.
Resolve all conflicts manually, mark them as resolved with
"git add/rm <conflicted_files>", then run "git rebase --continue".
You can instead skip this commit: run "git rebase --skip".
To abort and get back to the state before "git rebase", run "git rebase --abort".

处理方法

在合并分支的时候使用指令:

git rebase dev --rebase-merges

处理完冲突并add之后,执行操作:

git commit --allow-empty

然后就是vim操作了,写提交日志如下图:

保存之后就可以执行

git rebase --continue

OK了。

最后感谢问题分享:

git rebase --continue不起作用 _大数据知识库

相关推荐
abiao198110 小时前
如何在 VSCode 中创建 Vue 项目
ide·vue.js·vscode
应用市场11 小时前
ARM编译器深度解析:从Keil到VSCode的STM32开发之
arm开发·vscode·stm32
无限进步_13 小时前
【C语言】贪吃蛇游戏设计思路深度解析:从零开始理解每个模块
c语言·开发语言·c++·git·游戏·github·visual studio
达子66616 小时前
git使用应用实战大全
git
初遇你时动了情17 小时前
flutter vscode 终端无法使用fvm 版本切换、项目运行
ide·vscode·flutter
xxxxxue18 小时前
VS Code 隐藏顶部标题栏中间的文字
vscode·隐藏·标题栏
Aldrich_321 天前
蓝桥杯嵌入式赛道—-软件篇(GPIO输出模式配置)
c语言·vscode·stm32·单片机·嵌入式硬件·蓝桥杯
P***25391 天前
Git教程
git
Slow菜鸟1 天前
Java 开发环境安装指南(五) | Git 安装
java·git
计算衎1 天前
Git 命令 作用、常用选项、示例、何时使用与注意事项指南
git·源代码管理