Skip to content

Instantly share code, notes, and snippets.

@jakiestfu
Last active August 29, 2015 13:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakiestfu/9551639 to your computer and use it in GitHub Desktop.
Save jakiestfu/9551639 to your computer and use it in GitHub Desktop.
Git Remote Diff: Open the latest commit diff in GitHub
git config --global alias.rdiff '!g() { origin=`git config --get remote.origin.url`; origin=${origin/git@github.com:/https://github.com/}; url=${origin/.git/\/commit\/`git rev-parse HEAD`}; open $url; }; g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment