This script opens a url to the github commit page
add to a folder in $PATH (ie, /usr/local/bin, or if you have ~/bin part of your path). If the current branch is tracking a remote branch that is on github:
git hub # outputs the url to the most recent commit and opens it in default browser (if the commit has been pushed)
git hub -2 # opens the url to the 2nd most recent commit
git-hub takes options for git-log and opens the last item in the list (using tail -1
)