How to transform a fork to a repository? #52663
Select Topic AreaQuestion BodyI started to work to https://github.com/Marco-Sulla/python-frozendict forking the original repo. Now I am the official maintainer on Pypi, and I started to realize that a fork has not the same visibility of a normal repo. It's not included in searches on Github and in Google too. How can I transform the fork in a normal repo? |
Replies: 3 comments 13 replies
|
There's a "detach fork" option in the support menu: https://support.github.com/request/fork Clicking it opens a chatbot. I haven't had a need to use it so far, so I can only say that I hope it works. 😉 |
|
Unfortunately, you cannot directly convert a forked repository into a standalone repository on GitHub. However, you can turn your fork into a standalone repository by creating a new repository and copying the contents of your fork into it. Here's how you can do it:
Here's an example of the commands you can use: Clone your forked repository to your local machinegit clone https://github.com/yourusername/python-frozendict.git Change your current directory to the cloned repositorycd python-frozendict Remove the link to the original repositorygit remote remove origin Add a new remote link to the repository you just created on GitHubgit remote add origin https://github.com/yourusername/new-repository.git Push the changes to the new repositorygit push -u origin master After you've pushed the changes to the new repository, you can delete the forked repository on GitHub. Note that this process will not preserve the forks, stars, or watchers of your original repository. Hope this helps! 🙌🙌 |
|
Hey @Marco-Sulla @airtower-luna @airtower-luna @merusso @MaxymVlasov @jadurani I opened a product-feedback request proposing that GitHub preserve the relationship while separately recording original downstream contribution activity, and how forcing forks to detach from their upstream can cause harm and reduced visibility into issues. https://github.com/orgs/community/discussions/205090 This discussion demonstrates an unintended incentive in GitHub's treatment of forks. Detaching a repository can give it ordinary standalone treatment, but it also removes useful lineage. The code, authorship, maintenance work, and user value do not become more legitimate merely because the fork relationship is removed. The core principle is:
If you can comment how substantial work is being hidden due to this rule, or any use cases or needs to have this changes It will help strengthen the case. My singular voice won't be enough to change it, but if we have multiple voices, that would be great. |


There's a "detach fork" option in the support menu: https://support.github.com/request/fork
Clicking it opens a chatbot. I haven't had a need to use it so far, so I can only say that I hope it works. 😉