Created
August 21, 2017 10:59
-
-
Save themsaid/5e0a4bfbcd5a050b4302dda10400d18d to your computer and use it in GitHub Desktop.
open PR from the current branch
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 openpr() { | |
br=`git branch | grep "*"` | |
repo=$1 | |
parentBranch=$2 | |
open -a /Applications/Google\ Chrome.app https://github.com/${repo/* /}/compare/${parentBranch/* /}...themsaid:${br/* /}\?expand\=1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment