# HG changeset patch # User Oleksandr Gavenko # Date 1502715386 -10800 # Node ID 3977f49ae241137274c7445d1b85870bfda2c138 # Parent 8e8a16e1c5b3d567ac38ba663056fd65d59a0b24 Git bisect. diff -r 8e8a16e1c5b3 -r 3977f49ae241 git.rst --- a/git.rst Mon Aug 14 03:16:52 2017 +0300 +++ b/git.rst Mon Aug 14 15:56:26 2017 +0300 @@ -323,6 +323,37 @@ https://stackoverflow.com/questions/134882/undoing-a-git-rebase Undoing git rebase. +Git bisect +========== + +``bad`` changes should be later in graph history then ``good`` ones. + +Start bisecting with:: + + $ git bisect start + +Mark good and bad revisions:: + + $ git co vBAD + $ make test + $ git bisect bad + + $ git co vGOOD + $ make test + $ git bisect good + + +If build/test failed to complete use:: + + $ git bisect skip + +To restore mistakenly marked revisions:: + + $ git bisect log >$LOG + $ git bisect reset + $ $EDITOR $LOG + $ git bisect replay $LOG + Debug git network operation ===========================