-
-
Save mpalmerlee/e50ea8193b61a9b6ebdaf2f38f618865 to your computer and use it in GitHub Desktop.
git rdiff
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 | sed "s/git@/https:\/\//g" | sed "s/.com:/.com\//g"); 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