Git · Senior · Question 25 of 76
What makes git bisect run ./test.sh work?
- ✓Correct answer: Exit code 0 means good, 1-127 bad, and 125 skip
- 2Git reads the test results from a JSON file
- 3The script prints "good" or "bad" to stdout
Explanation
Git runs the script at each step and interprets its exit status. A minimal reproduction script turns a long hunt into a fully automatic one.