mygit

A wrapper around some GitHub API commands to allow quicker access to do stuff.

Setup

Put config file where I can find it :-

mkdir ~/.mygit
cp .mygit-example ~/.mygit

And then edit it to add your details

Setup a symlink to a directory in your path (I have ~/bin in mine)

ln -s <full-path>/mygit/mygit ~/bin/mygit

(Of course you can alias it to anything you like!)

Usage

Git a list of all repos :-

$ mygit list
...
urlybird                        [email protected]:globaldev/urlybird.git
...

Find info on a repo :-

$ mygit find urlybird
{"language"=>"Ruby",
 "description"=>"Fetches all your URIs in one fell swoop.",
 "ssh_url"=>"[email protected]:globaldev/urlybird.git",
 "html_url"=>"https://github.com/globaldev/urlybird",
 "pushed_at"=>"2012-05-30T11:13:54Z",
 "created_at"=>"2012-05-16T08:19:38Z",
 ....
 (tons more)

Clone a repo by name :-

$ mygit clone urlybird
Cloning into 'urlybird'...
...

Open the GitHub project page :-

$ mygit open urlybird

or from within the repo

$ mygit open