Skip to content

Instantly share code, notes, and snippets.

@kyleferguson
Last active October 4, 2016 16:17
Show Gist options
  • Save kyleferguson/33d0eca91598a3b7124895419162a973 to your computer and use it in GitHub Desktop.
Save kyleferguson/33d0eca91598a3b7124895419162a973 to your computer and use it in GitHub Desktop.
Easy pull requests
# Github plugin
# https://hub.github.com/
alias git="hub"
pull-request() {
default=$(git log -1 --pretty=%B | cat)
message=${1:-"$default"}
git pull-request -m $message | cat
}

Use last commit message as PR title:

$ pull-request

Add customer PR title

$ pull-request "custom title"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment