Last Updated: February 25, 2016
·
265
· konr

Create a Github repository right from the command-line

Check out this nifty hub command-line utility I came across.

k♥t> ls   
doc  project.clj  README.md  src  target  test
k♥t> git init
Initialized empty Git repository in /home/konrad/repos/foobar/.git/
k♥t> git add .
k♥t> git commit -am "first commit"
[master (root-commit) 0a4f4c0] first commit
 7 files changed, 54 insertions(+)
create mode 100644 .gitignore
create mode 100644 ...
...

k♥t> hub create
github.com username: konr 
github.com password for konr (never stored):  
Updating origin
created repository: konr/foobar
k♥t>