You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
1.2 KiB

  1. ┏━╸╻╺┳╸ ┏┓ ╻┏━┓┏━╸┏━╸╺┳╸
  2. ┃╺┓┃ ┃ ┣┻┓┃┗━┓┣╸ ┃ ┃
  3. ┗━┛╹ ╹ ┗━┛╹┗━┛┗━╸┗━╸ ╹
  4. Binary search to find commit that introduced a bug.
  5. ┌──────────────────────────────────────────┐
  6. │$ git bisect start │
  7. │$ git bisect bad <commit-ish> │
  8. │$ git bisect good <commit-ish> │
  9. └──────────────────────────────────────────┘
  10. ┌──────────────────────────────────────────┐
  11. │$ git bisect start HEAD HEAD~10 -- │
  12. │$ git bisect run make test │
  13. │$ git bisect reset │
  14. └──────────────────────────────────────────┘