Skip to content

Instantly share code, notes, and snippets.

@NorbertFenk
Created May 25, 2018 11:41
Show Gist options
  • Save NorbertFenk/b0025545c9fc253b787a2841b9814015 to your computer and use it in GitHub Desktop.
Save NorbertFenk/b0025545c9fc253b787a2841b9814015 to your computer and use it in GitHub Desktop.
Short example for the git bisect command.
https://git-scm.com/docs/git-bisect
https://dockyard.com/blog/2016/07/26/how-to-bisect-ember
example
cd <git directory>
git bisect start
git bisect bad // this command will assume the HEAD in this case
git bisect good <commit id of a good commit>
git bisect run ./<arbitrary scrip>
e.g.
```
#!/bin/sh
cd build
cmake .. && make -j4
```
git bisect reset #to stop bisect session -> by default it will By default it will reset the HEAD to where it was before you started https://stackoverflow.com/questions/23156415/how-do-i-stop-git-bisect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment