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
  • 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