Skip to content

Commit 1b29a23

Browse files
author
Alexander Pavlov
committed
NEW: Add info about git bisect
1 parent 2e647b5 commit 1b29a23

File tree

2 files changed

+249
-133
lines changed

2 files changed

+249
-133
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
105105
* [List only the root and merge commits.](#list-only-the-root-and-merge-commits)
106106
* [Merge previous two commits into one.](#merge-previous-two-commits-into-one)
107107
* [List all branch is WIP](#list-all-branch-is-wip)
108+
* [Find guilty with binary search](#find-guilty)
108109

109110
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
110111
<!-- @doxie.inject end toc -->
@@ -703,5 +704,16 @@ git rebase --interactive HEAD~2
703704
git checkout master && git branch --no-merged
704705
```
705706

707+
## Find guilty with binary search
708+
709+
```sh
710+
git bisect start # Search start
711+
git bisect bad # Set point to bad commit
712+
git bisect good v2.6.13-rc2 # Set point to good commit|tag
713+
git bisect bad # Say current state is bad
714+
git bisect good # Say current state is good
715+
git bisect reset # Finish search
716+
```
717+
706718
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
707719
<!-- @doxie.inject end -->

0 commit comments

Comments
 (0)