Will deleting the parent Github repository affect children forks?

巧了我就是萌 提交于 2019-12-12 07:22:33

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/22519508/will-deleting-the-parent-github-repository-affect-children-forks

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!