hub-init(1)

hub-init1

Initialize a git repository and add a remote pointing to github.

Usage

hub init -g

Options

-g

After initializing the repository locally, add the "origin" remote pointing to "USER/REPO" repository on GitHub.

USER is your GitHub username, while REPO is the name of the current working directory.

Examples

$ hub init -g
> git init
> git remote add origin [email protected]:USER/REPO.git

Releases

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

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

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