9.5 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 ...
Get Pragmatic Version Control Using Git now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.