DOKK / manpages / debian 10 / hub / hub-clone.1.en
HUB-CLONE(1) Hub Manual HUB-CLONE(1)

hub-clone - Clone a repository from GitHub.

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

(Deprecated) Clone private repositories over SSH.
[USER/]REPOSITORY
USER defaults to your own GitHub username.
Directory name to clone into (default: REPOSITORY).

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).

$ hub clone rtomayko/ronn
> git clone git://github.com/rtomayko/ronn.git

hub-fork(1), hub(1), git-clone(1)

March 2019 GITHUB