去掉github仓库的fork标记

博客写了一年多,现在有了不少 Star ,嘻嘻。最近遇到一个问题,这个博客原来是直接在 poole/lanyon 基础上开发的,因此 Github 显示的标签上会显示原始仓库。

orgin

3.1.0 版本之后,我对整个博客进行了重构,将博客内容和博客的主题文件分离,因此,从某种意义上来说这个仓库和原仓库的 Fork 关系已经不成立了。如果重新删除这个仓库重新建新的仓库的话原来的 Star 数量就都没有了。

在 GitHub 的官方帮助页面 Commit was made in a fork 中,有这一段话:

To detach the fork and turn it into a standalone repository on GitHub, contact GitHub Support or GitHub Premium Support. If the fork has forks of its own, let support know if the forks should move with your repository into a new network or remain in the current network. For more information, see “About forks.”

也就是说,Github 上是不能通过自己的操作来断开 Fork 联系的(但是 Gitlab 似乎支持)。毕竟如果随意就能断开的话,开源的一方就非常容易失去对源码的控制权,这很不利于开源社区的贡献。

所以需要按照上面说的,进入 GitHub Support 在里面填写需求,要求 GitHub 官方支持人员手动断开 Fork 关联。以下是我填写的内容(可怜的英语写作水平),可用作模板。

I'm the author of [wu-kan/wu-kan.github.io](https://github.com/wu-kan.github.io), which is a fork of [poole/lanyon](https://github.com/poole/lanyon). [poole/lanyon](https://github.com/poole/lanyon) has already stopped maintenance, and the relevant codes has been removed from my repository after refactoring.

However, [poole/lanyon](https://github.com/poole/lanyon) has a huge fork network, so I can not see my own network on <https://github.com/wu-kan/wu-kan.github.io/network/members>. Moreover, commits made in this repository did not count toward my contributions, [because the repository is a fork](https://help.github.com/en/github/setting-up-and-managing-your-github-profile/why-are-my-contributions-not-showing-up-on-my-profile#commit-was-made-in-a-fork).

I had already made some releases for my repository, so detach the fork and turn the repository into a standalone repository may help a lot. What's more, the forks of [wu-kan/wu-kan.github.io](https://github.com/wu-kan.github.io) need to move with the repository into a new network.

Thanks!

不到四个小时就收到了回复,还是很快的!

reply