Skip to content

Instantly share code, notes, and snippets.

@IdahoEv
Created February 17, 2014 21:11
Show Gist options
  • Save IdahoEv/9059221 to your computer and use it in GitHub Desktop.
Save IdahoEv/9059221 to your computer and use it in GitHub Desktop.
Quick and dirty script for reviewing pull request branches
#!/bin/bash
# usage: 'review <branchname>'
git checkout master
git pull
git fetch
git checkout $1
git pull origin $1 # necessary if branch was already checked out
bundle
bundle exec rake db:migrate
bundle exec rake db:test:prepare
bundle exec rspec spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment