Last active
August 29, 2015 13:57
-
-
Save jakiestfu/9551639 to your computer and use it in GitHub Desktop.
Git Remote Diff: Open the latest commit diff in GitHub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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