Hub: create private repos with `hub create`

Created on 20 Apr 2012  Â·  10Comments  Â·  Source: github/hub

THIS would be a killer for me.
Does the github API allow us to do this?

Most helpful comment

@justuseapen Yeah I'm pretty sure:

  1. It mentions the -p flag in the usage synopsis:

$ hub create -h Usage: git create [NAME] [-p] [-d DESCRIPTION] [-h HOMEPAGE]

  1. hub help hub says: "With -p, create a private repository"
  2. It's in the code
  3. It's in the tests

All 10 comments

You can do this. Check the man page.

Are you sure? I can't find this function.

@justuseapen Yeah I'm pretty sure:

  1. It mentions the -p flag in the usage synopsis:

$ hub create -h Usage: git create [NAME] [-p] [-d DESCRIPTION] [-h HOMEPAGE]

  1. hub help hub says: "With -p, create a private repository"
  2. It's in the code
  3. It's in the tests

Awesome thanks!

@mislav I think one missing spot where it could be documented better is:

$ hub create --help
Usage: hub create [-poc] [-d <DESCRIPTION>] [-h <HOMEPAGE>] [[<ORGANIZATION>/]<NAME>]

It's unclear what options poc do without hitting the man page: man hub-create

@AlJohri with hub version 2.2.9, hub create --help includes:

With -p, create a private repository

@darthwalsh Interesting... With the latest version on Homebrew (v2.12.0) The docs don't specify what -p, -o or -c do.

☺ hub --version
git version 2.17.2 (Apple Git-113)
hub version 2.12.0

☺  hub create --help
Usage: hub create [-poc] [-d <DESCRIPTION>] [-h <HOMEPAGE>] [[<ORGANIZATION>/]<NAME>]

@haysclark You can view the full docs with hub help create.

Perhaps hub create --help should show you the full man page just like hub help create does 🤔

@mislav I very much think so!

Just hit this issue, and I want to say that, they way I explore cmd usually is

command sub-command -h

So just displaying a bunch of options there without any explanation does not help much.
I think adding a short explanation for each option will help many users.
Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stsewd picture stsewd  Â·  4Comments

Kristinita picture Kristinita  Â·  4Comments

xxmyjk picture xxmyjk  Â·  4Comments

jfritzbarnes picture jfritzbarnes  Â·  3Comments

DennisSchiefer picture DennisSchiefer  Â·  4Comments