News for hackers. Stuff that matters.
Re:Tell HN: GitHub will delete your private repo if you lose... by rezonant on Tuesday January 31, 2023 @04:12PM (#34602198)
It will only be deleted if the repo you fork from is a private repository. The documentation [1] covers the other scenarios, in all of which you keep your copy of the code (including when the public repository is made private later).

[1] https://docs.github.com/en/pull-requests/collaborating-with-...

Re:Tell HN: GitHub will delete your private repo if you lose... by andyjohnson0 on Tuesday January 31, 2023 @04:39PM (#34602601)
> It will only be deleted if the repo you fork from is a private repository

This makes sense. Thank you for clarifying that important detail. It seems to be missing from the parts of the discussion I've read here.

Re:Tell HN: GitHub will delete your private repo if you lose... by TheRealPomax on Tuesday January 31, 2023 @05:10PM (#34602995)
No, it doesn't. It only makes sense until you stop and go "Wait, no, hold on a minute. Why would they delete the fork instead of simply severing the fork relation in their fork relations table?".
Re:Tell HN: GitHub will delete your private repo if you lose... by Ferret7446 on Wednesday February 01, 2023 @11:26PM (#34622064)
Consider:

You have access to many private company files. After you leave the company, the company is obligated to send you copies of all of the files because you may have linked to them. After all, you could have made personal copies of all of the files, so you should still retain access through links.

Re:Tell HN: GitHub will delete your private repo if you lose... by darekkay on Tuesday January 31, 2023 @04:19PM (#34602310)
TIL, thanks! I probably confused this with the GitHub takedowns, when forks are removed as well (as it happened to the youtube-dl repo). I could imagine my manual clone not withstanding such takedown either, though.
Re:Tell HN: GitHub will delete your private repo if you lose... by rezonant on Tuesday January 31, 2023 @04:25PM (#34602404)
Yeah for cases like that, keep a local copy, thankfully many people did
Re:Tell HN: GitHub will delete your private repo if you lose... by remram on Tuesday January 31, 2023 @05:20PM (#34603129)
What if the original is made private and then deleted? Does your fork remain?
Re:Tell HN: GitHub will delete your private repo if you lose... by vlz on Tuesday January 31, 2023 @07:56PM (#34604792)
Yes, the docs linked above say:

"If a public repository is made private and then deleted, its public forks will continue to exist in a separate network."

https://docs.github.com/en/pull-requests/collaborating-with-...

Re:Tell HN: GitHub will delete your private repo if you lose... by account42 on Wednesday February 01, 2023 @10:32AM (#34611881)
IIRC GitHub will also delete the entire fork network for DMCA request even if your fork is not mentioned explicitly.