我的组织有一个名为 org/A.git
的主存储库.我将其 fork 为 me/A.git
先到 Github。我的组织管理员制作了 org/A.git
私有(private)的,这打破了 fork 。然后,他更改了允许 fork 私有(private)存储库的设置。 me/A.git
仍然不是 fork ,而是一个简单的克隆。如何制作 me/A.git
再次 fork ,无需:
org/A.git
再次,这将导致 me/A-1.git
. me/A.git
. me/A-1.git
至me/A.git
. me/A.git
. 我想避免上述 4 个步骤,因为我在原始
me/A.git
中还有其他贡献者和分支并照顾所有看起来很简单的事情。
最佳答案
这是非常非常非常古老的......但是,我最近自己也遇到了类似的情况,并联系了 GitHub 支持。对我来说,并不是说它最初是一个 fork,然后它就坏了,而是我在理解什么是 fork 之前手动创建了自己的 repo(对于 Git 来说仍然是新的)。不幸的是,GitHub 支持确认没有办法做到这一点。
他们的报价:
Thanks for reaching out! Sorry for the trouble, but it isn't possible to attach a repository as a fork of another in this kind of situation -- repositories can't move from one fork network to another, or to a network they were not originally created from.
关于Github 将现有的 repo 转换为 fork,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54660304/