我愚蠢地中止了一个被遗忘的变种,其中包含了提交和未提交的更改,因此它将所有内容都删除了,类似于this之类的问题。
我知道reflog并立即去那里查看,但它只包含一个无用的pre-rebase状态的哈希值。到底是怎么回事?如何丢失reflog条目?
编辑:为了回应下面的@kan,这里大致是我所做的:git checkout badbranch
git rebase master
# CONFLICT, realized branch was bad and not needed anymore, but did not rebase --abort!
git branch -D badbranch
git checkout goodbranch
# some commits and edits here
git commit -av
# notices "you are currently rebasing" in the commit message
git rebase --abort # DOH
git reflog
reflog仅包含a8f06a6 HEAD@{2}: rebase: updating HEAD
现在