Earlier quoted context omitted.
That's why I usually don't use the official "fork" feature, but clone and push the repository manually instead. I would like to keep the fork network connection on Github, but I don't want to see my fork deleted because of an error, malice or simply lack of knowledge.
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-...
Tell HN: GitHub will delete your private repo if you lose access to the original
81–90 of 294 posts
Re: Tell HN: GitHub will delete your private repo if you lose access to the original
#82I have a number of git repos that the original developers deleted - because I sync’d them to a usb stick with gitea. I think that is how you have to do it - never entrust a service, especially a free one, with your only copy of anything you value. If the YouTube algorithm nukes your account and all your videos, you should be ready to upload them to a new account. Same with anything else digital. My current is standar…
I'm reasonably certain that if YouTube deletes your account uploading them to a new account is expressly forbidden.
Re: Tell HN: GitHub will delete your private repo if you lose access to the original
#83Re: Tell HN: GitHub will delete your private repo if you lose access to the original
#84I have a number of git repos that the original developers deleted - because I sync’d them to a usb stick with gitea. I think that is how you have to do it - never entrust a service, especially a free one, with your only copy of anything you value. If the YouTube algorithm nukes your account and all your videos, you should be ready to upload them to a new account. Same with anything else digital. My current is standar…
> because I sync’d them to a usb stick with gitea Just a tip: no need to use gitea if you want to replicate a git repository to somewhere else on disk/other disk. Just do something like this: mkdir /media/run/usb-drive/my-backup-repo (cd /media/run/usb-drive/my-backup-repo && git init) git remote add backup /media/run/usb-drive/my-backup-repo git push backup master And now you have a new repository at /media/run/usb-…
cd /media/run/usb-drive/my-backup-repo && git init --bare
Bare repositories don't have a working directory. You can still git clone / git pull from them to get the contents. You can also git push to them without clobbering any "local changes" (there aren't any).More detail here:
https://www.atlassian.com/git/tutorials/setting-up-a-reposit...
Re: Tell HN: GitHub will delete your private repo if you lose access to the original
#85Earlier quoted context omitted.
So you're suggesting GitHub should determine the total "average" license of a private repo and determine if your fork is indeed valid or not, before revoking access.
> So you're suggesting GitHub should determine the total "average" license of a private repo and determine if your fork is indeed valid or not, before revoking access. No, I'm not suggesting that. In fact, I didn't say anything about what GitHub should or shouldn't do. My comment related to how licenses work, not how GitHub works or should work. In particular, I was responding to this comment: > It's not your code or…
Re: Tell HN: GitHub will delete your private repo if you lose access to the original
#86I completely understand your frustration. It's a dick move to delete your content without (at least) giving you a chance to archive that work. At the same time this situation points up an important issue: if you don't own/control the infrastructure where your data lives, you don't own that data. Full stop. If you host your data "in the cloud" (i.e., on someone else's servers ) then you don't own that data, or at leas…
Re: Tell HN: GitHub will delete your private repo if you lose access to the original
#87I have a number of git repos that the original developers deleted - because I sync’d them to a usb stick with gitea. I think that is how you have to do it - never entrust a service, especially a free one, with your only copy of anything you value. If the YouTube algorithm nukes your account and all your videos, you should be ready to upload them to a new account. Same with anything else digital. My current is standar…
> because I sync’d them to a usb stick with gitea Just a tip: no need to use gitea if you want to replicate a git repository to somewhere else on disk/other disk. Just do something like this: mkdir /media/run/usb-drive/my-backup-repo (cd /media/run/usb-drive/my-backup-repo && git init) git remote add backup /media/run/usb-drive/my-backup-repo git push backup master And now you have a new repository at /media/run/usb-…
Re: Tell HN: GitHub will delete your private repo if you lose access to the original
#88I completely understand your frustration. It's a dick move to delete your content without (at least) giving you a chance to archive that work. At the same time this situation points up an important issue: if you don't own/control the infrastructure where your data lives, you don't own that data. Full stop. If you host your data "in the cloud" (i.e., on someone else's servers ) then you don't own that data, or at leas…
It's simple! Maintain the control and the capability to retrieve your important data at all times. The internet is a wild place and everything you don't save could potentially be gone forever.
An excellent point, but I'd go further and say that one should maintain multiple copies of important data, with at least one of those on hardware/infrastructure you control and have physical access to.
Re: Tell HN: GitHub will delete your private repo if you lose access to the original
#89Earlier quoted context omitted.
"This unfortunately makes sense because it is a private repo." I disagree. I expect a (i.e. my) fork to be independent of the original repository, no matter if it is private or not. It's enough if a fork of a private repository is private then too.
This is why I don't use github's fork feature. There's more than just this restriction they impose upon you. Instead I prefer to use a "git" fork. I just clone it and upload it to my own repo. Assuming the license permits of course.
Re: Tell HN: GitHub will delete your private repo if you lose access to the original
#90Earlier quoted context omitted.
> because I sync’d them to a usb stick with gitea Just a tip: no need to use gitea if you want to replicate a git repository to somewhere else on disk/other disk. Just do something like this: mkdir /media/run/usb-drive/my-backup-repo (cd /media/run/usb-drive/my-backup-repo && git init) git remote add backup /media/run/usb-drive/my-backup-repo git push backup master And now you have a new repository at /media/run/usb-…
Even better with cd /media/run/usb-drive/my-backup-repo && git init --bare Bare repositories don't have a working directory. You can still git clone / git pull from them to get the contents. You can also git push to them without clobbering any "local changes" (there aren't any). More detail here: https://www.atlassian.com/git/tutorials/setting-up-a-reposit...
So in the end, simple is simple :) Unless you're creating remote repositories at scale, you probably won't notice a difference in storage usage.