For the purposes of this tutorial, parent-url
will refer to the url of the repository you want to clone.
In a local terminal, run the following:
$ git clone parent-url
$ git remote remove origin
Don't add any files to it yet, all we want is the new repo. Now, copy the url of the new repo, we will call this child-url
.
Back in your local terminal, run the following command:
$ git remote add origin child-url
$ git push -u origin main
Now, feel free to archive or modify the "fork" any way you see fit.
This might not be necessary if you can just
import
parent-url in the create new GitHub repository menu.