git bisect start. You mark commit abc123 as bad and commit def456 as good. What is the next step git expects you to do?After marking the known good and bad commits, git bisect checks out a commit in the middle. You must test it and mark it as good or bad manually. This helps git narrow down the commit that introduced the bug.
git bisect bad after testing a commit. Git outputs:Bisecting: 3 revisions left to test after this (roughly 2 steps)
Next commit to test is 789abcde
What does this output mean?
The output shows how many commits remain to test and which commit git will check out next. It helps you understand progress.
If you cannot test a commit, skipping it allows git to ignore it and continue bisecting with other commits.
Binary search cuts the number of commits to check in half each step. For 128 commits, log2(128) = 7 steps max.
git bisect run with a test script that exits 0 if the commit is good and 1 if bad. Which of the following scripts is correct for this purpose?The script runs tests and exits 0 if tests pass (good commit), or exits 1 if tests fail (bad commit). This matches git bisect run expectations.
