Skip to content

Instantly share code, notes, and snippets.

@kitallis
Forked from jcoglan/git-bisect.txt
Created February 11, 2013 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kitallis/4753190 to your computer and use it in GitHub Desktop.
Save kitallis/4753190 to your computer and use it in GitHub Desktop.
$ git bisect start
$ git checkout recent_known_buggy_commit
$ git bisect bad
$ git checkout old_known_good_commit
$ git bisect good
# run tests, check things, etc.
$ git bisect good/bad
Repeat last two steps until git finds the first bad commit. Then:
$ git bisect reset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment