How to Abort Git Bisect

GitAbortGit Bisect

Git Problem Overview


I started my git bisect by specifying good and bad revisions but I don't think they registered. Additionally, as I am attempting to specify git bisect good and bad, I don't think git is doing anything. I would like to abort the entire bisect so that I can re-initiate the operation. git bisect reset seems to be what I am looking for, but I want to double check before potentially messing anything up.

Git Solutions


Solution 1 - Git

git bisect reset is the correct command. From the documentation:

> After a bisect session, to clean up the bisection state and return to the original HEAD, issue the following command: > > $ git bisect reset > >By default, this will return your tree to the commit that was checked out before git bisect start. (A new git bisect start will also do that, as it cleans up the old bisection state.)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionStunnerView Question on Stackoverflow
Solution 1 - GitGreg HewgillView Answer on Stackoverflow