我正在尝试git bisect
从已编辑的日志中重播一个以撤消我犯的错误。
我错误地将其中一个提交标记为好,而它本应该是坏的(反之亦然)。我跑了:
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。