News for hackers. Stuff that matters.
Re:Anyone can access deleted and private repository data on ... by Manuel_D on Wednesday July 24, 2024 @06:20PM (#41062805)
Not through the GitHub interface, no. But you can copy all files in a repository and create a new repository. IIRC there's a way to retain the history via this process as well.
Re:Anyone can access deleted and private repository data on ... by JyB on Wednesday July 24, 2024 @06:53PM (#41063065)
That’s beside the point. The article is specifically about « GitHub forks » and their shortcomings. It’s unrelated to pushing to distinct repositories not magically ´linked’ by the GH « fork feature ».
Re:Anyone can access deleted and private repository data on ... by mckn1ght on Wednesday July 24, 2024 @06:35PM (#41062944)
You can create a private repository on GitHub, clone it locally, add the repo being "forked" from as a separate git remote (I usually call this one "upstream" and my "fork", well, "fork"), fetch and pull from upstream, then push to fork.
Re:Anyone can access deleted and private repository data on ... by make3 on Wednesday July 24, 2024 @06:32PM (#41062917)
That's not the GitHub concept / almost trademark of "fork" anymore though, which is what your parent was talking about
Re:Anyone can access deleted and private repository data on ... by shkkmo on Wednesday July 24, 2024 @06:37PM (#41062956)
All you should have to do is just clone the repo locally and then create a blank GitHub repository, set it as the/a remote and push to it.
Re:Anyone can access deleted and private repository data on ... by a1o on Wednesday July 24, 2024 @06:33PM (#41062922)
I mean it's git, just git init, git remote add for origin and upstream, origin pointing to your private, git fetch upstream, git push to origin.