A bug appeared sometime in your last 1,000 commits. What does git bisect do?

Start playing free

  1. Deletes every commit after the bug
  2. Splits the repo into two copies
  3. Binary searches the commits to find the bad one

🔒 The answer is for AhaBulb members. Members see the answer, why it's right and the official sources for every card of Stuff Every Technology Expert Should Know, plus timed practice exams.

The first 50 cards of every test are free to play.

Play the free cards See membership

Like this card?
Play the game

References

  1. Git documentation: git-bisect git-scm.com/docs/git-bisect Checked 2026-10-10.

Think this answer is wrong? Tap "Challenge this answer" on the card in the game and tell us why.

Test yourself in the game