.TH "hub-fork" "1" "18 Oct 2023" "hub version 2.14.2" "hub manual" .nh .ad l .SH "NAME" hub\-fork \- Fork the current repository on GitHub and add a git remote for it. .SH "SYNOPSIS" .P \fB\fChub fork\fR [\-\-no\-remote] [\-\-remote\-name \fIREMOTE\fP] [\-\-org \fIORGANIZATION\fP] .SH "OPTIONS" .PP \-\-no\-remote .RS 4 Skip adding a git remote for the fork. .RE .PP \-\-remote\-name \fIREMOTE\fP .RS 4 Set the name for the new git remote. .RE .PP \-\-org \fIORGANIZATION\fP .RS 4 Fork the repository within this organization. .RE .br .SH "EXAMPLES" .PP .RS 4 .nf $ hub fork [ repo forked on GitHub ] > git remote add \-f USER git@github.com:USER/REPO.git $ hub fork \-\-org=ORGANIZATION [ repo forked on GitHub into the ORGANIZATION organization] > git remote add \-f ORGANIZATION git@github.com:ORGANIZATION/REPO.git .fi .RE .SH "SEE ALSO" .P hub\-clone(1), hub(1)