Skip to content

Commit

Permalink
git-bisect: add page
Browse files Browse the repository at this point in the history
  • Loading branch information
waldyrious committed Jan 4, 2017
1 parent 1617567 commit d318f3d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pages/common/git-bisect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# git bisect

> Use binary search to find the commit that introduced a bug.
> Git automatically jumps back and forth in the commit graph to progressively narrow down the faulty commit.
- Start a bisect section by passing a known good commit and a known bad commit:

`git bisect start {{bad_commit}} {{good_commit}}`

- For each commit that `git bisect` selects, mark it as "bad" or "good":

`git bisect {{good|bad}}`

- After `git bisect` pinpoints the faulty commit, end the bisect session and return to the previous branch:

`git bisect reset`

- Skip a commit during a bisect (e.g. one that causes a broken build due to another issue):

`git bisect skip`

0 comments on commit d318f3d

Please sign in to comment.