• darkpanda@lemmy.ca
    link
    fedilink
    arrow-up
    12
    ·
    10 months ago

    Learn to use git bisect. If you have unit tests, which of course you should, it can save you so much time finding weird breakages.

    • xthexder@l.sw0.com
      link
      fedilink
      arrow-up
      11
      arrow-down
      1
      ·
      10 months ago

      With automated CI, I’ve had very few times where bisect is useful. Either the bug was introduced 1-2 commits ago, or it’s always been there and the exact commit is irrelevant to the solution, since you just fix it forward.