Skip to content

Instantly share code, notes, and snippets.

View AurelienGasser's full-sized avatar

Aurélien Gasser AurelienGasser

View GitHub Profile
@coreymartella
coreymartella / git-commiturl
Created May 2, 2012 18:57
Get a commit url for sharing
#!/usr/bin/env ruby
######
# To Install
# sudo wget https://raw.github.com/gist/2579234/git-commiturl -O /usr/local/bin/git-commiturl
# sudo chmod +x /usr/local/bin/git-commiturl
#
# To use
# git commiturl # gets the HEAD commit hash and copies a github url for it
# git commiturl -c 3dfcb4e7143d0c200e980ee2f65759157e066651 -o #copies a url for a specific commit hash AND opens it in your local browser