git-hub icon indicating copy to clipboard operation
git-hub copied to clipboard

Add ability to create new repositories

Open nicolas17 opened this issue 9 years ago • 9 comments

It would be handy if I could create a new empty repository in my account (and clone it) using git-hub. That's one of the few actions where using the website is required.

nicolas17 avatar Nov 20 '15 05:11 nicolas17

I'm using cligh for creating GitHub repos, but I'd obviously prefer one tool to rule them all. :-)

jwilk avatar Nov 20 '15 12:11 jwilk

I wonder if this should be implemented as an option to clone or as a new command...

I think new command git hub init (analogous to git init) would make sense.

jwilk avatar Nov 20 '15 17:11 jwilk

Mmm, I'm not convinced it's a good analogy, unless this command performs the git init too, but still...

What's your typical use case for this? Because I really never felt the need for this, so maybe I'm not really understanding the issue.

I just started using git-hub and this is really the only action that still requires the website. My use case at least is just pushing an existing local repository to Github.

somini avatar Nov 22 '16 23:11 somini

I often create local git repos for smaller projects but then forget to create a new repo on our on premise github, set the remote and push to it. I would like to call git hub init (maybe with a parameter) which creates my local AND remote repo at the same time

githubkusi avatar May 24 '19 14:05 githubkusi

I was thinking there should be a git hub repo sub-group with subcommands create and list at the least, and maybe also info and setinfo to allow configuring the repo to the extent the API allows.

pjz avatar May 25 '19 06:05 pjz

I think this might go a bit beyond this tool's purpose. The official already can do this: https://hub.github.com/hub-create.1.html. But if someone is willing to implement it, I don't oppose to it either.

I don't mind the API part of it, but the strange nested object command parsing discouraged my attempt at implementation.

pjz avatar May 28 '19 22:05 pjz