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
- adds the remote repo
- checks out the remote repo as a local branch
- pulls from the remote master or specific commit you provided
- switches back to master
- (with your confirmation) merges the just-checked out branch
- (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"»