【发布时间】:2021-02-05 07:06:22
【问题描述】:
在推送我的本地代码提交之前,我做了一个 rebase。
我跳过了变基步骤,我的代码更改消失了。
问题是: 我第一次提交 -> 一些本地提交 -> 变基
我尝试通过检查 git reglog 来恢复,但我的本地更改不存在:
52f02f5 (HEAD -> ori-add-3dots-button) HEAD@{0}: rebase finished: returning to refs/heads/ori-add-3dots-button
52f02f5 (HEAD -> ori-add-3dots-button) HEAD@{1}: rebase: initial commit
但在这两者之间有一些本地提交。
有没有办法以某种方式恢复这些提交或这段代码?
*我使用VScode
谢谢!
【问题讨论】:
-
启动变基而不解决合并冲突的目的是什么?错字:是
reflog
标签: git visual-studio-code commit