Skip to content

Instantly share code, notes, and snippets.

@wonjun27
Forked from hmrtk/gist:f2ce80577df032513c28
Last active August 29, 2015 14:15
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 wonjun27/d774f41b782f266b4756 to your computer and use it in GitHub Desktop.
Save wonjun27/d774f41b782f266b4756 to your computer and use it in GitHub Desktop.
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