Skip to content

Instantly share code, notes, and snippets.

@matrixfox
Last active August 29, 2015 14:11
Show Gist options
  • Save matrixfox/aaa21e953022e941748c to your computer and use it in GitHub Desktop.
Save matrixfox/aaa21e953022e941748c to your computer and use it in GitHub Desktop.
git bisect

git bisect

  1. Binary search through revision history
  2. You may not need it often
  3. Saves a ton of time!

Commands

1. Start git bisect

git bisect start

2. Marks the HEAD revision bad.

git bisect bad

3. Marks a revision you think is good.

git bisect good 2.0

Run your tests...
Mark HEAD bad

git bisect bad

Run tests again
Marks HEAD good

git bisect good
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment