【发布时间】:2025-12-24 14:05:12
【问题描述】:
我正在尝试将已编辑日志中的 git bisect 重播到我创建的 undo a mistake。
我错误地将其中一个提交标记为好,而它本应该是坏的(反之亦然)。我跑了:
git bisect log > C:\temp\bisect.log
# Alternatively
git bisect log | Set-Content -Encoding ASCII C:\temp\bisect.log
然后我编辑了该文件以从错误标记的提交中删除所有行。
然后我跑了:
git bisect reset
git bisect replay c:\temp\bisect.log
我现在收到错误:
We are not bisecting. Bisecting: 5211 revisions left to test after this (roughly 12 steps) [9bc79b2f25a3724376d7af19617c33749a30ea3a] Merge branch 'release/2.1' into release/2.2 error: couldn't get the oid of the rev '9bc79b2f25a3724376d7af19617c33749a30ea3a?'
发生了什么事?我如何解决它? (为什么修订的末尾有一个“?”?)
我在 Windows 10 上使用 git 版本 2.26.2.windows.1。我使用 PowerShell 7 作为我的 shell。
【问题讨论】:
标签: git powershell newline git-bisect