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不起作用 _大数据知识库

相关推荐
慕容引刀5 分钟前
告别Commit信息纠结:使用Git AI Commit插件实现规范化提交
人工智能·git·github·visual studio code·visual studio
流量猎手12 分钟前
Vscode登陆服务器
服务器·ide·vscode
敲代码的嘎仔14 小时前
实习日志day6--实习日志day6--title命名规范化&businessType纠正&补充缺失的@Log注解&报警与通信模块补充&产出阶段总结文档
java·开发语言·人工智能·git·python·实习·大二
刘马想放假15 小时前
Git 从入门到进阶:一篇吃透版本管理的实战指南
git·gitlab
开发者联盟league16 小时前
git commit报错No .pre-commit-config.yaml file was found
git
巴渝小禹19 小时前
【VSCODE】使用技巧
vscode
猫老板的豆21 小时前
git实战
git
风曦Kisaki1 天前
# Linux实战笔记-HIS项目实战Day01:版本控制与Git基础
linux·笔记·git
snow@li1 天前
VSCode:学习手册 / 全景梳理与深度分析
ide·vscode
鲸~屿1 天前
Git上传本地文件到GitHub教学指南
git·github