删除父Github存储库会影响儿童分叉吗? [英] Will deleting the parent Github repository affect children forks?
问题描述
ParentRepo
|
----- ChildRepo
|
----- ChildOfChildRepo1
|
----- ChildOfChildRepo2
|
----- ChildOfChildRepo3
ChildRepo $只要最终用户使用最新的代码并发出pull请求,c $ c>就是权威存储库。这是从
ParentRepo
。
ChildOfChildRepoN
由 ChildRepo
分叉的最终用户制作的叉子。
$ b $ <
ParentRepo
是 ChildRepo
授权存储库分支的父项。偶尔我会将提交从 ChildRepo
分支推送到 ParentRepo
。 在一个Github帐户下控制
ParentRepo
,在另一个Github帐户下控制 ChildRepo
。 如果我删除 ParentRepo
存储库,是否会以任何方式影响 ChildRepo
和它的孩子叉?
不,孩子只知道 ChildRepo
和 ChildRepo
如果是公共回购,仍然会在周围。
请参阅 GitHub帮助:删除存储库
删除私有存储库也会删除其所有分支。
删除公共存储库不会。
然而,要求GitHub支持确认是一件好事。 dea。
这可能会影响从 ChildRepo
到 ParentRepo
虽然。
I have a repository structure like this hosted on Github:
ParentRepo
|
-----ChildRepo
|
-----ChildOfChildRepo1
|
-----ChildOfChildRepo2
|
-----ChildOfChildRepo3
The ChildRepo
is the "authoritative" repository, as far as where end users go for the latest code and to issue pull requests. This was forked from ParentRepo
.
The ChildOfChildRepoN
are forks made by end users, forked from the ChildRepo
.
The ParentRepo
is the parent of the ChildRepo
authoritative repository fork. Occasionally I push commits from the ChildRepo
fork up to the ParentRepo
.
I control ParentRepo
under one Github account, and ChildRepo
under another Github account.
If I delete the ParentRepo
repository, will that in any way affect ChildRepo
and its child forks?
No, the child forks only know about ChildRepo
, and ChildRepo
will still be around if it is a public repo.
See "GitHub help: Deleting a repository"
Deleting a private repository also deletes all of its forks.
Deleting a public repository will not.
However, asking GitHub support for confirmation is a good idea.
That might affect any pending pull request from ChildRepo
to ParentRepo
though.
这篇关于删除父Github存储库会影响儿童分叉吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!