hub-create
Create a new GitHub repository
TLDR
Upload the current (local-only) repository to your GitHub account as public
Create a private repository and open the new repository in a web browser
SYNOPSIS
hub create [-p] [-d DESCRIPTION] [-h HOMEPAGE] [-o ORIGIN] [NAME]
PARAMETERS
-p, --private
Create a private repository.
-d, --description DESCRIPTION
Add a description to the repository.
-h, --homepage HOMEPAGE
Set repository homepage URL.
-o, --origin ORIGIN
Name of the git remote (default: origin)
DESCRIPTION
hub create is part of the hub command-line tool, a wrapper around git that adds GitHub integration. It creates a new repository on GitHub directly from your local git directory, sets up the origin remote, and pushes your current branch.
Run it inside a git repository to automatically name the repo after the directory, or specify a NAME. It handles authentication via GitHub tokens or SSH keys. Ideal for quick repo setup without browser interaction.
Hub detects the repo name from the current directory or accepts a custom name. It supports private repos, descriptions, and homepages. After creation, it configures git remotes for push/pull.
Requires hub installed (via brew, apt, etc.) and GitHub authentication configured.
CAVEATS
Hub is deprecated and archived; use gh repo create instead.
Must be in a git repo or specify NAME. Requires GitHub auth.
AUTHENTICATION
Uses GITHUB_TOKEN env var, ~/.config/hub, or SSH keys.
USAGE EXAMPLE
hub create -d 'My project' -p creates private repo with description.
HISTORY
Developed by GitHub in 2011 as git wrapper. Popular until 2020, when archived in favor of official gh CLI.


