How do you get git bisect to ignore merged branches?

后端 未结 10 1252
长情又很酷
长情又很酷 2020-12-04 14:26

I\'m aware that git bisect is branch-aware by design, so that if between good commit, G, and bad commit, B, you merged in a branch, it needs to take those changes into consi

10条回答
  •  余生分开走
    2020-12-04 15:09

    You can instruct git-bisect to only go through the first-parents of the merge commits by running the following command:

    git bisect skip $(comm -23 <(git rev-list G | sort) <(git rev-list --first-parent G | sort))
    

提交回复
热议问题