For instance, there is a repo called foo
.
There are three forks of it called foo-bar
, foo-baz
and foo-baq
which were created sequentially.
foo
is updated quite frequently. Forks are more or less outdated, e.g., foo-baq
is the freshest one (but not as fresh as foo
) and foo-bar
is the oldest one.
What happens when the owner of foo
deletes it? Which of the forks is chosen as the main repo (i.e. shown as "forked from" in two other forks)?
Best Answer
Provided that the main repository is public, the oldest fork is selected to become the parent:
Source: GitHub Help: What happens to forks when a repository deleted or changes visibility?
Update #1: Doing some rudimentary testing (creating multiple forks and then deleting the parent), it appears that the oldest fork becomes the parent.
Update #2: I emailed the support team, and this is the reply I received: