Skip to content

Instantly share code, notes, and snippets.

@babldev babldev/github.sh
Created Apr 5, 2019

Embed
What would you like to do?
Open commit on github v2
#!/bin/sh
REPO=$(git config --get remote.origin.url | sed "s/^.*://" | sed "s/\.git\$//")
open https://github.com/$REPO/commit/$1
@babldev

This comment has been minimized.

Copy link
Owner Author

babldev commented Apr 5, 2019

Usage github <sha> inside of a git directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.