“缺少git-rebase-todo”-“在'(null)'上重新设置<branch>'”

时间:2019-06-14 17:27:40

标签: git git-rebase

没有我的意图,我的存储库中开始了重新配置,现在我无法取消它。

之前的操作:大型合并,然后进行正常的提交,然后进行工作目录更改(出于安全考虑,现在进行了存储)。我当时在使用Sublime Merge,却不知道自己为引起这种情况所做的任何事情。

$ git status
On branch <branch>
Your branch is up to date with 'origin/<branch>'.

git-rebase-todo is missing.
No commands done.
No commands remaining.
You are currently editing a commit while rebasing branch '<branch>' on '(null)'.
  (use "git commit --amend" to amend the current commit)
  (use "git rebase --continue" once you are satisfied with your changes)

nothing to commit, working tree clean

好的,让我们尝试中止或继续清空...

$ git rebase --continue
error: could not read '.git/rebase-merge/onto': No such file or directory

不是

$ git rebase --abort
error: could not read '.git/rebase-merge/onto': No such file or directory

在上一条消息之后,这是预期的。也许要重置?

$ git reset --hard
HEAD is now at db889bc <commit message>

这实际上并没有解决我的问题。

我可以随意更改分支,但问题仍然存在。

我怀疑我可以通过xkcd method来解决此问题,但这自然不能令人满意。

0 个答案:

没有答案