Skip to content

Instantly share code, notes, and snippets.

@bento-n-box
Last active May 10, 2017 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bento-n-box/694981de8b248f7e001c4bebab5df6ed to your computer and use it in GitHub Desktop.
Save bento-n-box/694981de8b248f7e001c4bebab5df6ed to your computer and use it in GitHub Desktop.
Open git pull request alias
function create_branch_pr {
branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
remote=$(git config remote.origin.url | cut -d. -f1-2)
echo "$remote/compare/develop...$branch"
}
alias opr='open -a /Applications/Google\ Chrome.app $(create_branch_pr)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment