Skip to content

Instantly share code, notes, and snippets.

@hSATAC
Last active December 17, 2015 09:59
Show Gist options
  • Save hSATAC/5591270 to your computer and use it in GitHub Desktop.
Save hSATAC/5591270 to your computer and use it in GitHub Desktop.
Shell function to send pull request using hub
# Usage: pr (pull request current branch into develop)
# Usage 2: pr stable (pull request current branch into stable)
# Notice: replace "team" with your github team account.
function pr() {
base=$1;
if [ "$1" == "" ]; then
base="develop"
fi
hub pull-request -b team:"$base" -h team:`git rev-parse --abbrev-ref HEAD`;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment