Last active
December 17, 2015 09:59
-
-
Save hSATAC/5591270 to your computer and use it in GitHub Desktop.
Shell function to send pull request using hub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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