Last active
January 4, 2024 20:42
-
-
Save jakiestfu/994a6d555eebcce05292 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