22 lines
1.2 KiB

┏━╸╻╺┳╸ ┏┓ ╻┏━┓┏━╸┏━╸╺┳╸
┃╺┓┃ ┃ ┣┻┓┃┗━┓┣╸ ┃ ┃
┗━┛╹ ╹ ┗━┛╹┗━┛┗━╸┗━╸ ╹
Binary search to find commit that introduced a bug.
┌──────────────────────────────────────────┐
│$ git bisect start │
│$ git bisect bad <commit-ish> │
│$ git bisect good <commit-ish> │
└──────────────────────────────────────────┘
┌──────────────────────────────────────────┐
│$ git bisect start HEAD HEAD~10 -- │
│$ git bisect run make test │
│$ git bisect reset │
└──────────────────────────────────────────┘