LinuxCommandLibrary

hub-create

creates a new GitHub repository and adds it as a remote

TLDR

Create new GitHub repository

$ hub create
copy
Create with description
$ hub create -d "[description]"
copy
Create private repository
$ hub create -p
copy
Create in organization
$ hub create [org/repo]
copy
Create and open in browser
$ hub create -o
copy
Create with homepage
$ hub create -h [https://example.com]
copy

SYNOPSIS

hub create [options] [name]

DESCRIPTION

hub create creates a new GitHub repository and adds it as a remote. Uses the current directory name if no name specified. Can create repositories in organizations by specifying org/repo format.

PARAMETERS

-d, --description text

Repository description.
-p, --private
Create private repository.
-h, --homepage url
Repository homepage URL.
-o, --open
Open in browser after creation.
--remote-name name
Set remote name (default: origin).

CAVEATS

Hub is deprecated. Consider using gh repo create instead.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community