Skip to content

Instantly share code, notes, and snippets.

@wisq
wisq / gist:0fa021df52a3bd2485ac
Last active Sep 5, 2022
Protip: Bisecting a single commit
View gist:0fa021df52a3bd2485ac

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