LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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 --browse
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, --browse
Open the new repository in a web browser.
-c, --copy
Copy the new repository URL to the clipboard instead of printing.
--remote-name name
Set the name for the new git remote (default: origin).

CAVEATS

Hub is deprecated. Consider using gh repo create instead.

SEE ALSO

Copied to clipboard
Kai