Skip to content

Instantly share code, notes, and snippets.

@wisq
wisq / gist:0fa021df52a3bd2485ac
Last active June 3, 2023 04:18
Protip: Bisecting a single commit

Situation: Some commit (on master, but not necessarily head of master) has broken things, but it's a big commit and it's not clear what part broke things.

% git checkout master
% git checkout -b bisect-branch
% git revert <offending commit>

(test here to make sure reverting fixed your problem)

% git bisect start