Created
May 25, 2018 11:41
-
-
Save NorbertFenk/b0025545c9fc253b787a2841b9814015 to your computer and use it in GitHub Desktop.
Short example for the git bisect command.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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