Lurker News
I was surprised to see this in my email today:

> Your private repository baobabKoodaa/laaketutka-scripts (forked from futurice/how-to-get-healthy) has been deleted because you are no longer a collaborator on futurice/how-to-get-healthy.
That was an MIT-licensed open source project I worked on years ago. We published the source code for everyone to use, so I certainly did not expect to lose access to it just because someone at my previous company has been doing spring cleaning at GitHub! I had a 100% legal fork of the project, and now it's gone... why?
Turns out I don't even have a local copy of it anymore, so this actually caused me data loss. I'm fine with losing access to this particular codebase, I'm not using HN as customer support to regain access. I just wanted everyone to be aware that GitHub does this.

Comments (279) 52 threads

Earlier comments
sbierwagen2 replies#
Is futurice/how-to-get-healthy a public repo? It's not visible on https://github.com/orgs/futurice/repositories

If you fork a private repo and they remove you from the collaborators list, it's reasonable that your fork would be removed.

baobabKoodaa1 reply#
Well, it's not reasonable to me, but we'll just have to respectfully disagree on this.
IncRnd1 reply#
It probably seems more reasonable to the people who own the repo.
baobabKoodaa1 reply#
I don't think the people who removed my access had any intention of deleting private repos. It's just somebody cleaning up ex-employee access from GitHub.

Continue this thread — 1 reply

glerk#
The most “expected behavior” here would be to remove the fork relationship between the two repos and leave the copied repo as a plain private repo. I don’t think it is reasonable to just delete a private repo by default.
whstl#
I have an interesting but unrelated story about files going away in Github.

Remember when Windows Research source code that was used for teaching in university, and was leaked in the late-aughts, way before Microsoft purchased Github?
I had this code in one private repository called "ms" for more than a decade. It didn't have Git history or anything, it was just some random files, plus the leaked sources.
I totally forgot about it until a last year ago, when I checked, and the code is entirely gone.
I'm now more careful about what I put in private repos. In fact I don't have anything private there anymore...

Jorengarenar#
We ought to treat GitHub's "fork" more like "branch on my account".

If one wants to create an actual fork, then clone the repository locally, change the upstream and push to repo on your account.

josephcsible2 replies#
Never use the fork feature on private repos. Instead, clone the repo locally, create a fresh GitHub repo, and push your local clone manually to that. Doing so will protect you from this attack.
theossuary#
It'd be nice to be able to manually specify an upstream for a repo, that's the main benefit of forking in the UI.
hashtag-til2 replies#
Does that limit submitting PRs to the original repo somehow?
kitkat_new#
you need to make a fork for that, however you could add that one as a second upstream repo
kevincox#
Apparently yes. You can't submit PRs to a repo outside of the "fork network". (IIUC these all share a single Git repo under the hood)

Load more comments