Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save corbanb/fb652d43939423e3f4d95cae0c3e347c to your computer and use it in GitHub Desktop.
Save corbanb/fb652d43939423e3f4d95cae0c3e347c 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...updates/$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