[Solved] Why does GitHub not let us create our repositories using the command line out-of-the-box?


Regarding your first question: This is not a “restriction” by github, but by git. Git is not specifically designed for github and thus has no support for pushing to non-existent repositories. I think github could hack that in on the server side, but that would just create a repo for every typo etc, as Ikke pointed out.

If you want nicer command-line support, you can use github’s hub tool: https://github.com/github/hub. Using that, you can create a repo with hub create.

Alternatively you could just create a small shell script yourself that contains all the required code and just takes the repository name as parameter.

2

solved Why does GitHub not let us create our repositories using the command line out-of-the-box?