hub-create(1)

hub-create1

Create a new repository on github and add a git remote for it.

Usage

hub create [-poc] [-d DESCRIPTION] [-h HOMEPAGE] [[ORGANIZATION/] NAME]

Options

-p, --private

Create a private repository.

-d, --description DESCRIPTION

A short description of the GitHub repository.

-h, --homepage HOMEPAGE

A URL with more information about the repository. Use this, for example, if your project has an external website.

--remote-name REMOTE

Set the name for the new git remote (default: "origin").

-o, --browse

Open the new repository in a web browser.

-c, --copy

Put the URL of the new repository to clipboard instead of printing it.

[ORGANIZATION/]NAME

The name for the repository on GitHub (default: name of the current working directory).

Optionally, create the repository within ORGANIZATION.

Examples

$ hub create
[ repo created on GitHub ]
> git remote add -f origin [email protected]:USER/REPO.git
$ hub create sinatra/recipes
[ repo created in GitHub organization ]
> git remote add -f origin [email protected]:sinatra/recipes.git

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

  1. 10
  2. 11
  3. 12
  4. 13
  5. Arch

--remote-name since Debian 11 (Bullseye).

From hub 2.14.2-4 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.