Will deleting the parent Github repository affect

2019-05-23 05:19发布

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条回答
一夜七次
2楼-- · 2019-05-23 05:45

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.

查看更多
登录 后发表回答