Last Updated: February 25, 2016
·
1.635K
· swapnilabnave

Hub : create new github repo!

Install Hub

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

check successful installation with

$hub version

Create a new repo on github (Assuming rails project is already setup)

/distructive(master)$ 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 "git@github.com:USER/REPOSITORY.git"; 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.