My usual workflow when starting a git bisect
session is:
git bisect start # start a bisect session
git bisect bad # I noticed that the current state is broken
Now, often I know that things worked in the past, but I don't know yet which version was good, so I usually want to revert my working tree to an older state, build, test, repeat until I find a working version which I can mark with git bisect good
.
What's the best way to do the "revert my working tree to an older state" step? git reset --hard <some_good_rev>
? git checkout <some_good_rev>
? Something else? Please justify your answer.