Created
April 5, 2019 20:34
-
-
Save babldev/526e13d36aa99ac7dddd5d04364c2185 to your computer and use it in GitHub Desktop.
Open commit on github v2
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
#!/bin/sh | |
REPO=$(git config --get remote.origin.url | sed "s/^.*://" | sed "s/\.git\$//") | |
open https://github.com/$REPO/commit/$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage
github <sha>
inside of a git directory