📜 Git History & Forensics Vocabulary
0 / 5 completed
1 / 5
A senior developer says: "We used git bisect to find the commit that introduced the regression."
What does git bisect do?
git bisect — binary search for regression commits:
| Step | Command |
|---|---|
| 1. Start | git bisect start |
| 2. Mark current as broken | git bisect bad |
| 3. Mark known-good commit | git bisect good <SHA> |
| 4. Git checks out midpoint | Test and label good/bad — repeat until culprit found |
Key vocabulary: binary search in history, regression bisect, bisect automation with test script, first bad commit.