Skip to content

Instantly share code, notes, and snippets.

@bytespider
Created October 9, 2012 07:07
Show Gist options
  • Save bytespider/3857107 to your computer and use it in GitHub Desktop.
Save bytespider/3857107 to your computer and use it in GitHub Desktop.
[alias]
share = "!URL=`git remote show origin | awk 'NR==2{print $3}' | sed 's/:/\\//;s/git@/http:\\/\\//g;s/\\.git//'`/commit/`git log -1 --format="%H" HEAD` && echo $URL && echo $URL | pbcopy"
@bytespider
Copy link
Author

now you can git share - clearly will only work where the first remote is a github one

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