Main

merge a github pull request w/one command

Feb 14 by Andre

Getting pull requests from for your open-source project on github? The official instructions are here: http://github.com/guides/pull-requests

Since I don't like typing, I automated the process in a very simple Ruby script: http://gist.github.com/64519

What it does for you

  1. adds the remote repo
  2. checks out the remote repo as a local branch
  3. pulls from the remote master or specific commit you provided
  4. switches back to master
  5. (with your confirmation) merges the just-checked out branch
  6. (with your confirmation) deletes your just-checked out branch

To use

  • put the contents of the gist into ~/mergefrom.rb (or anywhere in your path)
  • make sure it's executable
  • (inside a git repo): mergefrom git://github.com/foo/bar.git

Continue reading "merge a github pull request w/one command