Git 吉特';还原当前正在进行中';:如何探索差异? 背景

Git 吉特';还原当前正在进行中';:如何探索差异? 背景,git,Git,不知怎的,我遇到了一个仅部分完成的恢复: ❯ git status On branch feature/myfeature Your branch is up to date with 'origin/feature/myfeature'. Revert currently in progress. (run "git revert --continue" to continue) (use "git revert --skip" to skip

不知怎的,我遇到了一个仅部分完成的恢复:

❯ git status
On branch feature/myfeature
Your branch is up to date with 'origin/feature/myfeature'.

Revert currently in progress.
  (run "git revert --continue" to continue)
  (use "git revert --skip" to skip this patch)
  (use "git revert --abort" to cancel the revert operation)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
    ../demo/

nothing added to commit but untracked files present (use "git add" to track)
我的
.git
文件夹:

❯ \ls -1       
COMMIT_EDITMSG
FETCH_HEAD
HEAD
ORIG_HEAD
config
description
hooks
index
info
logs
objects
packed-refs
refs
sequencer

各种还原为do的文件中都有一些编码信息,但查看这些信息并不容易。我在哪里可以找到这些文件,@torek?它们在不同的Git版本中移动过。我必须运行一个
git revert
来找到它们现在的去向。它们将是每个工作树的,默认工作树使用
.git/
,添加的工作树使用
.git/worktrees/
。理想情况下,
git status
会阅读它们并告诉您正在进行的rebase,我认为现代git确实会这样做,这让我怀疑您有一个较旧的git版本。(但我还没有检查。)谢谢你,@torek,但我的Git版本是全新的。我已经更新了我的问题以反映这一点。您可以通过
git worktree add
获得工作树。还原数据将位于
sequencer
目录中。
❯ \ls -1       
COMMIT_EDITMSG
FETCH_HEAD
HEAD
ORIG_HEAD
config
description
hooks
index
info
logs
objects
packed-refs
refs
sequencer