在fork和parent之间切换角色 [英] Switching role between fork and parent

查看:236
本文介绍了在fork和parent之间切换角色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为github上的某个项目假设了维护人员。我通过克隆原作者的存储库并推动我自己的改变和发展来完成这项工作。这是与原作者一致完成的,所以他们不希望将来能够继续这项工作。尽管如此,我的存储库被标记为他们的分支,这使得它看起来不那么正式。有什么方法可以将某个给定的存储库表示为官方的?要交换我的存储库和原始开发者之间的关系?



我想我可以删除我的存储库,然后让原始开发人员将他们转移到我的存储库,然后让原来的开发人员从中分离出来,然后将我自己的更改从本地回购中推出。但不知何故,这感觉不对。这将取决于我的本地副本。例如,页面分支可能会造成额外的麻烦。我希望有一个更清晰的解决方案。

解决方案

似乎没有干净的方法来做到这一点。



看起来你最好的选择是要求GitHub支持将存储库转换为正常模式,而不是分叉模式。



另一个解决方案是删除并重新创建存储库。然而,这可能是危险的,因为wiki和问题数据也会在这个过程中被删除。



如果您对此有进一步的问题,请在评论中告诉我我可以修改我的答案。


I've assumed maintainership for a given project on github. I've done so by cloning the repository of the original authors and pushing my own changes and developments. This was done in accord with the original authors, so they do not expect to work on this in the future. Nevertheless, my repository is marked as a fork of theirs, which makes it appear less official. Is there some way to denote a given repository as official? To swap the relation between my repository and that of the original developers?

I guess I could delete my repository, then ask the original devs to transfer theirs to mine, then let the original devs fork from that, then push my own changes from my local repo. But somehow this feels wrong. It would rely on my local copy. Migration of e.g. the pages branch might be causing extra trouble. I hope there is a cleaner solution.

解决方案

There doesn't seem to be a clean way to do this.

It seems your best option is to ask GitHub support to convert your repository to "normal mode" as opposed to "forked from" mode.

Another solution is to delete and recreate the repository. However, this can be dangerous, as the wiki and issues data will also be deleted in this process.

If you have further questions about this then let me know in comments and I can amend my answer.

这篇关于在fork和parent之间切换角色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆