thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

DevOps & Automation · Advanced

git bisect

A Git command that performs a binary search through commit history to find the commit that introduced a bug.

Definition

You mark a known good and a known bad commit; Git checks out midpoints for testing until the culprit is found. git bisect run can automate it with a test script.

Example

git bisect start; git bisect bad HEAD; git bisect good v1.2.0

Exam tip

Bisect finds the offending commit in log2(n) steps.

Related terms