Delete fork dependency of a GitHub repository

前端 未结 6 853
心在旅途
心在旅途 2020-11-28 19:02

How can I make GitHub forget or disassociate that my repo was originally a fork of another project?

I forked a project in GitHub. I can now see \"forked from whateve

6条回答
  •  爱一瞬间的悲伤
    2020-11-28 20:01

    Make sure you have all the important branches and tags on your local repo, delete the github repo, recreate the repository through usual means (no forking) and push the local repository back with git push --all. Note that if you have local branches that you don't want to publish, might be worth to create a temporary clean local clone for the operation.

    However, this will also get rid of wiki and issues. As the wiki is in fact it's own repository, it can be handled similarly by cloning it and then recreating and pushing. The repo address is on wiki's Git Access page (git@github.com:user/repo.wiki.git).

    This leaves issues. They can be exported through the API, but as far as I know, you can only create issues and comments with your person, so importing them perfectly is impossible.

    So, if you need issues to be preserved, you should go through github support as Thomas Moulard suggests.

提交回复
热议问题