hub is a command line tool that wraps git in order to extend it with extra features and commands that make working with GitHub easier.


$ gem install hub
$ hub hub standalone > ~/bin/hub && chmod +x ~/bin/hub

check successful installation with

 $hub version

Create a new github repo

 demo-project$ git create [NAME] [-p] [-d DESCRIPTION] [-h HOMEPAGE]


-p create a private repository

-d set the repository's description

-h set the homepage URL

This will create a new public GitHub repository from the current git repository and add remote origin at ""; USER is your GitHub username and REPOSITORY is the current working directory name.

To explicitly name the new repository, pass in NAME, optionally in ORGANIZATION/NAME form to create under an organization you're a member of.