create repositories frome command line

hi there

is there any command to create a new github repository from command line ?

thanks

1 Like

HI @grosfaignan,

Thanks for being here!  Unfortunately, there is no native git command to create a new GitHub repo.

GitHub maintains a command-line wrapper for git called hub which conveniently allows you to create a new GitHub repository from the CLI:

git **create -d "\<commit name\>"**

This will create a new repository called whatever the current directory is named.  If you’re interested, you can find out more about hub here.

2 Likes