Git 在尝试撤消重基时卡住

Git 在尝试撤消重基时卡住,git,Git,在执行了两个Git命令来撤销一个rebase之后,我遇到了一些错误 git checkout topic git reset --hard origin/topic 有人能解释一下这是什么以及如何解决吗? 我不想再次丢失我的代码 git status向我显示了这一点 Last command done (1 command done): pick c326b089c8 Revert "Conflicts removed from master, OffscreenCanvas

在执行了两个Git命令来撤销一个rebase之后,我遇到了一些错误

git checkout topic 
git reset --hard origin/topic
有人能解释一下这是什么以及如何解决吗? 我不想再次丢失我的代码

git status
向我显示了这一点

    Last command done (1 command done):
    pick c326b089c8 Revert "Conflicts removed from master, OffscreenCanvas changes ready for merge" Will rebase branch and resolve conflicts. This reverts commit 7357f2e5444bed9e93e1380331464a5332319d09.
   Next command to do (1 remaining command):
   pick 90bec670b4 Changes reverted in conflicting files. OffscreenCanvas API ready to be merged.
  (use "git rebase --edit-todo" to view and edit)
  You are currently editing a commit while rebasing branch 'testing' on '1b0b63edf9'.
  (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--abort
将中止rebase操作,并将存储库返回到启动rebase之前的状态。自从你开始了ReBASE后,你所做的一切都将丢失。

看起来你被困在了ReBASE的中间。您应该能够使用“git-rebase--abort”来结束rebase。您可能会从SourceTree这样的可视化编辑器中受益。@Stephen我不想丢失所做的更改。abort命令会保留我的更改吗?这要看情况而定。我建议您将更改过的文件复制一份,并将其放在一个新的目录中以便安全保存。如果你丢失了更改,你可以恢复文件。我否决了这个问题,因为你从来没有。