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? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 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. 😉 |
Beta Was this translation helpful? Give feedback.
-
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! 🙌🙌 |
Beta Was this translation helpful? Give feedback.
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. 😉