.TH "hub-clone" "1" "18 Oct 2023" "hub version 2.14.2" "hub manual" .nh .ad l .SH "NAME" hub\-clone \- Clone a repository from GitHub. .SH "SYNOPSIS" .P \fB\fChub clone\fR [\-p] [\fIOPTIONS\fP] [\fIUSER\fP/]\fIREPOSITORY\fP [\fIDESTINATION\fP] .SH "OPTIONS" .PP \-p .RS 4 (Deprecated) Clone private repositories over SSH. .RE .PP [\fIUSER\fP/]\fIREPOSITORY\fP .RS 4 \fIUSER\fP defaults to your own GitHub username. .RE .PP \fIDESTINATION\fP .RS 4 Directory name to clone into (default: \fIREPOSITORY\fP). .RE .br .SH "PROTOCOL USED FOR CLONING" .P The \fB\fCgit:\fR 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). .SH "EXAMPLES" .PP .RS 4 .nf $ hub clone rtomayko/ronn > git clone git://github.com/rtomayko/ronn.git .fi .RE .SH "SEE ALSO" .P hub\-fork(1), hub(1), git\-clone(1)