Skip to content

Instantly share code, notes, and snippets.

@pmarreck
Created August 2, 2012 22:00
Show Gist options
  • Save pmarreck/3241059 to your computer and use it in GitHub Desktop.
Save pmarreck/3241059 to your computer and use it in GitHub Desktop.
A far simpler interface to git bisect, as a bash function
# automated git bisecting. because I hate remembering how to use this.
# ex. usage: git_wtf_happened <ruby testfile> <how many commits back, default 10>
function git_wtf_happened {
git bisect start HEAD HEAD~${2:-10};
git bisect run ruby $1;
git bisect view;
git bisect reset;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment