Git bisect.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 14 Aug 2017 15:56:26 +0300
changeset 2175 3977f49ae241
parent 2174 8e8a16e1c5b3
child 2176 40c43e30c7fa
Git bisect.
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
 ===========================