删除父Github存储库会影响儿童分叉吗? [英] Will deleting the parent Github repository affect children forks?

查看:168
本文介绍了删除父Github存储库会影响儿童分叉吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  ParentRepo 
|
----- ChildRepo
|
----- ChildOfChildRepo1
|
----- ChildOfChildRepo2
|
----- ChildOfChildRepo3

ChildRepo 就是权威存储库。这是从 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屋!

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