Reputation: 1556
I want to duplicate a repository, that also has a submodle - which is it's own repository.
When I duplicate the top-level repository (using the method described in GitHub's help pages), only the top repository is duplicated, and the submodule is still linked to the original repository.
However, I want to (temporarily) make both repositories private and thus be able to edit both as full duplicates.
How can I do that?
Upvotes: 1
Views: 667
Reputation: 1556
For anyone running into the same problem, here's what I did:
Worked like a charm.
Upvotes: 0
Reputation: 10670
You would want to create a fork of both the repo and any Sub modules into a private repo. Then you would just remove the submodule from the original repo, then add a new submodule from your fork.
HERE's a link that covers how to fork a public repo into a new private repo.
and HERE's a great post on removing and updating submodules.
Upvotes: 1