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

后端 未结 5 1360
清酒与你
清酒与你 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-22 23:54

    I would just "cheat" git and swap meanings of good <=> bad.

    In other words, consider "bad" as something that does not exhibit the problem so this is not the "good" version to base your patch on.

    Good and bad are pretty subjective concepts anyway, right? :)

    git bisect start
    git bisect good last
    git bisect bad master
    

提交回复
热议问题