I'm wondering if there is anyway to reattach a "detached" repository in GitHub?
Order of events:
Is there any hope of "reattaching" this fork? Or do I rename my repository, fork again, and copy over code?
Any suggestions welcome.
If a team's access to a private repository is revoked or a team with access to a private repository is deleted, and team members do not have access to the repository through another team, private forks of the repository will be deleted.
If you want to restore a repository that was part of a fork network that is not currently empty, you can contact GitHub Support. It can take up to an hour after a repository is deleted before that repository is available for restoration. Restoring a repository will not restore release attachments or team permissions.
Warnings: Deleting a repository will permanently delete release attachments and team permissions. This action cannot be undone. Deleting a private repository will delete all forks of the repository.
The answer to delete the repository is destructive and will lose any progress and comments in open pull requests.
The best solution is to contact GitHub via a support message detailing that you have changed a repository from private to public and the forks are in a detached state. GitHub will do the change for you, in my case within 30mins.
Support contact form: Github support contact page
Thanks to @saeedgnu for the elegant and perfect suggestion. Solution was to:
Phew. Crisis averted.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With