Skip to content

Instantly share code, notes, and snippets.

@wearhere
wearhere / create-pull-request.sh
Created November 17, 2014 22:21
Automate creating pull requests.
#! /bin/sh
### This script automates creating a pull request
### by publishing your current topic branch to your remote,
### opening the pull request page in your browser,
### and (optionally) switching you back to your master branch
### so that you can start a new branch.
## Get arguments
# Invoke with no arguments to print usage