Created
February 18, 2015 15:44
-
-
Save hmrtk/f2ce80577df032513c28 to your computer and use it in GitHub Desktop.
Opening github compare from command line
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
git symbolic-ref HEAD | | |
sed -e "s/^refs\/heads\///" | | |
awk '{printf "https://github.com/USERACCOUNT/REPOSITORY-NAME/compare/%s?expand=1",$1}' | | |
xargs open |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment