The last two aliases need some explanation. Only tested on Mac OSX.
git hub
: Opens the current repo on GitHub in your web browser. It first runs git config --get remote.origin.url
to get the URL for the origin remote, then does some regex processing with perl to turn the remote URL to something like https://github.com/user/project
.
git page
: Launches the project page if you have one on gh-pages
. If your GH repo lives at https://github.com/user/project
, this will launch http://user.github.io/project
in your default browser.
That last one is... fantastic. Thanks!