When a pushed commit breaks the build, the priority is restoring a working build quickly, then fixing the underlying issue properly with the original author's context rather than guessing at a patch.
The build turns red right after a teammate's push; git bisect (or the CI history) confirms their commit as the cause, so the team reverts it immediately to unblock everyone, then works with the author to land a properly fixed version with a regression test.
git bisect start
git bisect bad HEAD
git bisect good v1.4.0A concise interview answer is
I'd first confirm which commit broke the build, using bisect or the CI logs, then revert it to restore a green build quickly rather than leaving the team blocked. From there I'd work with the author on a proper fix, ideally with a test added, before recommitting.
Last updated: 11 November 2026
Previous question: How do you create and manage tags in Git, and when would you use them?
Next question: What is a detached HEAD in Git, and how does it happen?