.nh .TH "GH-REPO-FORK" "1" "Oct 2022" "" "GitHub CLI manual" .SH NAME .PP gh-repo-fork - Create a fork of a repository .SH SYNOPSIS .PP \fB\fCgh repo fork [] [-- ...] [flags]\fR .SH DESCRIPTION .PP Create a fork of a repository. .PP With no argument, creates a fork of the current repository. Otherwise, forks the specified repository. .PP By default, the new fork is set to be your "origin" remote and any existing origin remote is renamed to "upstream". To alter this behavior, you can set a name for the new fork's remote with \fB\fC--remote-name\fR\&. .PP Additional git clone flags can be passed after \fB\fC--\fR\&. .SH OPTIONS .TP \fB\fC--clone\fR Clone the fork .TP \fB\fC--fork-name\fR \fB\fC\fR Rename the forked repository .TP \fB\fC--org\fR \fB\fC\fR Create the fork in an organization .TP \fB\fC--remote\fR Add a git remote for the fork .TP \fB\fC--remote-name\fR \fB\fC\fR Specify the name for the new remote .SH SEE ALSO .PP \fB\fCgh-repo(1)\fR