Created
April 28, 2015 14:46
-
-
Save hiquest/3350ede53e80c4326c96 to your computer and use it in GitHub Desktop.
Make a pull request from command line (OSX ready)
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
#!/bin/sh | |
# This will open a browser window with pull-request | |
set -e | |
project=`git remote -v | grep origin | head -n 1 | awk '{print $2}' | sed 's/.*github.com.//' | sed 's/\.git//'` | |
branch=`git rev-parse --abbrev-ref HEAD` | |
url="https://github.com/$project/compare/$branch?expand=1" | |
open $url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment