Skip to content

Instantly share code, notes, and snippets.



Last active Jul 25, 2016
What would you like to do?
# abort on errors
set -e
# setup correct ruby
source $(brew --prefix chruby)/share/chruby/
chruby $(cat ~/dev/project/.ruby-version)
# reproduce issue
cd ~/dev/project
bundle exec rspec spec/your_spec.rb
git bisect start
git bisect bad # current bad commit
git bisect good master # last working commit
git bisect run ../
git bisect reset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment