mirror of
https://github.com/namibia/tips.git
synced 2025-01-23 23:28:30 +00:00
Merge pull request #67 from SanSYS/master
Add information about git-bisect
This commit is contained in:
commit
277043bf23
12
README.md
12
README.md
@ -105,6 +105,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
|
||||
* [List only the root and merge commits.](#list-only-the-root-and-merge-commits)
|
||||
* [Merge previous two commits into one.](#merge-previous-two-commits-into-one)
|
||||
* [List all branch is WIP](#list-all-branch-is-wip)
|
||||
* [Find guilty with binary search](#find-guilty-with-binary-search)
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end toc -->
|
||||
@ -703,5 +704,16 @@ git rebase --interactive HEAD~2
|
||||
git checkout master && git branch --no-merged
|
||||
```
|
||||
|
||||
## Find guilty with binary search
|
||||
|
||||
```sh
|
||||
git bisect start # Search start
|
||||
git bisect bad # Set point to bad commit
|
||||
git bisect good v2.6.13-rc2 # Set point to good commit|tag
|
||||
git bisect bad # Say current state is bad
|
||||
git bisect good # Say current state is good
|
||||
git bisect reset # Finish search
|
||||
```
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
@ -314,4 +314,7 @@
|
||||
}, {
|
||||
"title": "List all branch is WIP",
|
||||
"tip": "git checkout master && git branch --no-merged"
|
||||
}, {
|
||||
"title": "Find guilty with binary search",
|
||||
"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"
|
||||
}]
|
||||
|
Loading…
x
Reference in New Issue
Block a user