Skip to content

Commit 277043b

Browse files
committed
Merge pull request #67 from SanSYS/master
Add information about git-bisect
2 parents 2e647b5 + e27d2a6 commit 277043b

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
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-with-binary-search)
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 -->

tips.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,4 +314,7 @@
314314
}, {
315315
"title": "List all branch is WIP",
316316
"tip": "git checkout master && git branch --no-merged"
317+
}, {
318+
"title": "Find guilty with binary search",
319+
"tip": "git bisect start # Search start \ngit bisect bad # Set point to bad commit \ngit bisect good v2.6.13-rc2 # Set point to good commit|tag \ngit bisect bad # Say current state is bad \ngit bisect good # Say current state is good \ngit bisect reset # Finish search \n"
317320
}]

0 commit comments

Comments
 (0)