Skip to main content


Can I say how much I absolutely love git's bisect method? Not sure where the bug appeared?

git bisect start
git bisect bad

...checkout an older revision which you can prove shows the bug isn't there:

git bisect good

Git then splits the difference. Every build you mark good or bad automatically brings you to the middle revision between working or not until you find the culprit. Brilliant. #git #programming #debugging
https://git-scm.com/docs/git-bisect

reshared this

in reply to Hank G ☑️

IiRC you can set up a shell script to report if a branch is good or bad and let the whole thing run to finish without human intervention.
in reply to Chris L

That'd be cool for cases where the bug is detected in automated tests!
in reply to Hank G ☑️

I only did it once but it was magically cool. It works better if you can convince your team to commit to linear histories which is harder these days than before.