Last active
May 5, 2019 19:21
-
-
Save ChristophP/a9c94fa5c12d845f742e4a04e127029e to your computer and use it in GitHub Desktop.
git bisect example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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