0

我愚蠢地中止了一个被遗忘的 rebase,其中包含提交和未提交的更改,所以它把所有东西都吹走了,类似于这样的问题

我知道 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

refloga8f06a6 HEAD@{2}: rebase: updating HEAD现在只包含

4

0 回答 0