Skip to content

Instantly share code, notes, and snippets.

@jakiestfu
Last active January 4, 2024 20:42
Show Gist options
  • Save jakiestfu/994a6d555eebcce05292 to your computer and use it in GitHub Desktop.
Save jakiestfu/994a6d555eebcce05292 to your computer and use it in GitHub Desktop.
git rdiff
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