hub-clone - Man Page

Clone a repository from GitHub.


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



(Deprecated) Clone private repositories over SSH.


USER defaults to your own GitHub username.


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


$ hub clone rtomayko/ronn
> git clone git://

See Also

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

Referenced By

hub(1), hub-fork(1).

16 Mar 2020 hub version 2.14.2 hub manual