Skip to content

Instantly share code, notes, and snippets.

@reconbot
Last active August 29, 2015 13:56
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 reconbot/8942320 to your computer and use it in GitHub Desktop.
Save reconbot/8942320 to your computer and use it in GitHub Desktop.
alias gh='open `git config --get remote.origin.url | sed "s@.*com.\(.*\)\.git@https://github.com/\1@"`/compare/`git symbolic-ref HEAD | cut -d "/" -f 3`'
@reconbot
Copy link
Author

@koudelka gave an earlier version this to me - opens branch in github compare view in your favorite browser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment