Skip to content

Instantly share code, notes, and snippets.

@ChristophP
Last active May 5, 2019 19:21
Show Gist options
  • Save ChristophP/a9c94fa5c12d845f742e4a04e127029e to your computer and use it in GitHub Desktop.
Save ChristophP/a9c94fa5c12d845f742e4a04e127029e to your computer and use it in GitHub Desktop.
git bisect example
# MANUAL RUN
git checkout <KNOWN_BAD_COMMIT>
git bisect start
git bisect bad
git bisect good <KNOWN_GOOD_COMMIT>
# cycle till done
git bisect log # to check what you've done so far
<test if good or bad>
git bisect bad|good
git bisect reset
# AUTOMATED RUN
git bisect start <KNOWN_BAD_COMMIT> <KNOWN_GOOD_COMMIT>
git bisect run <cmd-to-test-good-or-bad>
git bisect reset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment