1. hub-clone(1)
  2. hub manual
  3. hub-clone(1)

Clone a repository from GitHub.

Synopsis

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

HTTPS protocol is used by hub as the default. Alternatively, hub can be configured to use SSH protocol for all git operations. See "SSH instead of HTTPS protocol" and "HUB_PROTOCOL" of hub(1).

Examples

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

See also

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