How could I use git bisect to find the first GOOD commit?

后端 未结 5 1319
清酒与你
清酒与你 2020-12-22 23:05

I have the following problem:

  • the version at master works fine
  • the version of the last tag before master (say last
5条回答
  •  隐瞒了意图╮
    2020-12-23 00:09

    Git now lets you use old and new without first defining them. You have to call git bisect start without commits as further arguments, then properly start the bisection by calling

    git bisect old 
    git bisect new 
    

    https://git-scm.com/docs/git-bisect#_alternate_terms

    This essentially is what @MarcH was suggesting should be implemented.

提交回复
热议问题