Add contributors pull requests to your origin remote
# .git/config
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
url = [email protected]:thoughtbot/[repo].git
Fetch and checkout the remote branch. Run bundle to make sure any new dependencies are installed.
git fetch
git checkout -t origin/pr/[pull number]
bundle
Look at changes in branch
git fetch origin; git diff origin/master
Validate tests are passing
rake
Rebase interactively and squash if there are multiple commits
git rebase -i master
Merge code into master
git checkout master
git merge branch-name
Validate tests are still passing
rake
Push code to origin master
git push origin master
Clean up branch and remote
git branch -D branch-name
Here's some magic to add pull-requests as branches on origin that you can check out, rather than adding a remote that you have to add/remove per-contributer: