我知道topic-branch-7的提示有bug,也知道master的提示没有bug。我想找出在 topic-branch-7 中引入错误的位置。所以我运行了以下命令:
git checkout topic-branch-7
# some testing to verify the bug
git bisect start bad # start a git bisect and mark this commit as bad
git-merge-base master topic-branch-7
9ac8c59bb10c13d86bcdeff90cb47e25d477caad
git checkout 9ac8c59bb10c13d86bcdeff90cb47e25d477caad
# some testing to verify the bug is not present
git bisect good
让我感到震惊的是,当我运行 git bisect good 时……什么也没有发生!难道不应该将提交标记为好,找到这个提交和错误提交之间的中点,然后检查那个提交吗?为什么什么都没有发生?