Skip to content

Instantly share code, notes, and snippets.

@themsaid
Created August 21, 2017 10:59
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 themsaid/5e0a4bfbcd5a050b4302dda10400d18d to your computer and use it in GitHub Desktop.
Save themsaid/5e0a4bfbcd5a050b4302dda10400d18d to your computer and use it in GitHub Desktop.
open PR from the current branch
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