Skip to content

Instantly share code, notes, and snippets.

@hmrtk
Created February 18, 2015 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hmrtk/f2ce80577df032513c28 to your computer and use it in GitHub Desktop.
Save hmrtk/f2ce80577df032513c28 to your computer and use it in GitHub Desktop.
Opening github compare from command line
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