Skip to content

Instantly share code, notes, and snippets.

@othree
Last active March 29, 2017 21:15
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save othree/9503483 to your computer and use it in GitHub Desktop.
Save othree/9503483 to your computer and use it in GitHub Desktop.
@othree
Copy link
Author

othree commented Mar 12, 2014

Usage

git link to show git hub link for single commit

git link
git link HEAD
git link HEAD^
git link 70bfacf861f3ac09fe77165f91df9e471776ddde

On OSX, you can pipe to pbcopy(system clipboard)

git link | pbcopy

or (thanks @timdream)

open `git link`

Link is trustable only when commit were pushed.

Known issue

Remote 'origin' might not github.

License

MIT

@timdream
Copy link

and

open `git link`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment