O'Reilly logo

Pragmatic Version Control Using Git by Travis Swicegood

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Bisecting Your Repository

Try as we might, bugs still make it into the software we create. We add unit tests, have rigorous acceptance tests created with clients, and think through the implications of what we are creating, but all of these steps require perfection from humans in order to work.

Plan for the occasional bug. All those tools can help you locate the bug, but when they fail, you can turn to your repository to try to figure out when the bug got introduced. git bisect is a tool that helps with that process.

git bisect works by stepping through your repository’s history based on a known bad commit and a known good commit. It walks you through your repository, letting you mark a commit as good or bad, until you isolate the commit ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required