Undoing a git bisect mistake

后端 未结 2 493
一生所求
一生所求 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:22

    You can output a record of what was done using

    $ git bisect log > bisect.log
    

    Open that file in an editor and edit/remove the faulty line. Then you can replay it with

    $ git bisect replay bisect.log
    

    This is documented in git help bisect.

提交回复
热议问题