git bisect start bad-commit good-commit git bisect run command_with_exit_code_0_on_good_commit --and nonzero on broken commit