Undoing a git bisect mistake

后端 未结 2 489
一生所求
一生所求 2020-12-22 20:26

I\'m doing a non-automated git bisect via command line. All is going well until I accidentally hit return on the wrong line in my command history, and rather than running th

2条回答
  •  旧巷少年郎
    2020-12-22 21:09

    From the git-bisect documentation:

    Bisect log and bisect replay

    After having marked revisions as good or bad, issue the following command to show what has been done so far:

    $ git bisect log
    

    If you discover that you made a mistake in specifying the status of a revision, you can save the output of this command to a file, edit it to remove the incorrect entries, and then issue the following commands to return to a corrected state:

    $ git bisect reset
    $ git bisect replay that-file
    

提交回复
热议问题