News for hackers. Stuff that matters.
Re:Tell HN: GitHub will delete your private repo if you lose... by chrisfosterelli on Tuesday January 31, 2023 @03:54PM (#34601912)
Yeah I understand how this is unfortunate but for 99% of cases this is what you want to happen when you remove someone's access to a private codebase.

It seems like this is an unusual use case that OP had an MIT-licensed open source project whose source only exists in a private repo.

Re:Tell HN: GitHub will delete your private repo if you lose... by cma on Tuesday January 31, 2023 @06:48PM (#34604108)
Is this scenario possible?

- you fork a public repo

- it's visibility is changed to private but you have access through the org

- they delete it

- you lose your fork, which was only ever of the public repo

Re:Tell HN: GitHub will delete your private repo if you lose... by kitkat_new on Tuesday January 31, 2023 @06:59PM (#34604203)
no, in this case it works as expected;

"GitHub will detach public forks of the public repository and put them into a new network. Public forks are not made private."

https://docs.github.com/en/repositories/creating-and-managin...

But better be safe than sorry...