Upgrade to Pro — share decks privately, control downloads, hide ads and more …

git bisect

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.

git bisect

git bisect is a nifty little Git command that really helps when you’re investigating a bug in your codebase. Within a few commands, you can systematically step through hundreds of commits and find the one that broke your build.

Avatar for Jakob Krigovsky

Jakob Krigovsky

March 03, 2018
Tweet

More Decks by Jakob Krigovsky

Other Decks in Programming

Transcript

  1. master $ git bisect start $ git bisect bad master

    $ git bisect good v4.2 Bisecting: 675 revisions left to test after this (roughly 10 steps) HEAD v4.2
  2. master $ git bisect bad Bisecting: 337 revisions left to

    test after this (roughly 9 steps) HEAD v4.2
  3. $ git bisect run npm test $ git bisect skip

    $ git bisect terms $ git bisect replay