Git bisect and git worktree: Finding the Bad Commit and Two Branches at Once
We find the commit that introduced a bug with git bisect's binary search: marking good and bad, bisect log and reset, automatic search by exit code with git bisect run, and exit 125. Then we use git worktree to make a hotfix in a separate folder without disturbing unfinished work, and look at worktree list/remove/prune and when it beats stash.
6 Nov 2026
·
9 min
·
2