.TH "hub-remote" "1" "18 Jul 2021" "hub version 2.14.2" "hub manual" .nh .ad l .SH "NAME" hub\-remote \- Add a git remote for a GitHub repository. .SH "SYNOPSIS" .P \fB\fChub remote\fR add [\-p] [\fIOPTIONS\fP] \fIUSER\fP[/\fIREPOSITORY\fP] .br \fB\fChub remote\fR set\-url [\-p] [\fIOPTIONS\fP] \fINAME\fP \fIUSER\fP[/\fIREPOSITORY\fP] .SH "OPTIONS" .PP \-p .RS 4 (Deprecated) Use the \fB\fCssh:\fR protocol instead of \fB\fCgit:\fR for the remote URL. The writeable \fB\fCssh:\fR protocol is automatically used for own repos, GitHub Enterprise remotes, and private or pushable repositories. .RE .PP \fIUSER\fP[/\fIREPOSITORY\fP] .RS 4 If \fIUSER\fP is "origin", that value will be substituted for your GitHub username. \fIREPOSITORY\fP defaults to the name of the current working directory. .RE .br .SH "EXAMPLES" .PP .RS 4 .nf $ hub remote add jingweno > git remote add jingweno git://github.com/jingweno/REPO.git $ hub remote add origin > git remote add origin git@github.com:USER/REPO.git .fi .RE .SH "SEE ALSO" .P hub\-fork(1), hub(1), git\-remote(1)