Simon Savai
Simon Savai

Reputation: 192

GITHUB: How to convert forked repository that was turned standalone back t a fork

I have a github fork that was turned standalone after the main repository changed from private to public.

According to github documentation, if a private repository is made public, each of its private forks is turned into a standalone private repository and becomes the parent of its own new repository network. The documentation advises that such a repository should either be made public or upgraded.

I have so far changed my repo to public but it is still standalone. Is there a way to connect it back to main repo? There are some pull requests I had submitted while still private and I'd like to follow up with extra updates.

Upvotes: 0

Views: 618

Answers (1)

Marcus Müller
Marcus Müller

Reputation: 36442

You can fork again, add the forked repository as remote and then git push --all --force from your local clone of your "unforked" repo.

Upvotes: 1

Related Questions