Created
February 17, 2014 21:11
-
-
Save IdahoEv/9059221 to your computer and use it in GitHub Desktop.
Quick and dirty script for reviewing pull request branches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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