Skip to content

Instantly share code, notes, and snippets.

@babldev
Created April 5, 2019 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save babldev/526e13d36aa99ac7dddd5d04364c2185 to your computer and use it in GitHub Desktop.
Save babldev/526e13d36aa99ac7dddd5d04364c2185 to your computer and use it in GitHub Desktop.
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
Copy link
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