Forked from bento-n-box/gist:694981de8b248f7e001c4bebab5df6ed
Created
February 24, 2017 00:49
-
-
Save corbanb/fb652d43939423e3f4d95cae0c3e347c to your computer and use it in GitHub Desktop.
Open git pull request alias
This file contains hidden or 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
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