Last active
May 10, 2017 16:47
-
-
Save bento-n-box/694981de8b248f7e001c4bebab5df6ed to your computer and use it in GitHub Desktop.
Open git pull request alias
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
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