hub-clone(1)

hub-clone1

Clone a repository from github.

Usage

hub clone [-p] [OPTIONS] [USER/] REPOSITORY [DESTINATION]

Options

-p

(Deprecated) Clone private repositories over SSH.

[USER/]REPOSITORY

USER defaults to your own GitHub username.

DESTINATION

Directory name to clone into (default: REPOSITORY).

Protocol used for cloning

The git: protocol will be used for cloning public repositories, while the SSH protocol will be used for private repositories and those that you have push access to. Alternatively, hub can be configured to use HTTPS protocol for everything. See "HTTPS instead of git protocol" and "HUB_PROTOCOL" of hub(1).

Examples

$ hub clone rtomayko/ronn
> git clone git://github.com/rtomayko/ronn.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.