Live data from Hacker News

Moving from GitHub to Codeberg, for lazy people

unterwaditzer.net

241–250 of 385 posts

Re: Moving from GitHub to Codeberg, for lazy people

#241
post #176

Earlier quoted context omitted.

Which makes it not really a suitable replacement for GitHub, which is my entire point. Keep in mind, I'm not saying Codeberg is bad , but it's terms of use are pretty clear in the sense that they only really want FOSS and anyone who has something other than FOSS better look elsewhere. GitHub allowed you to basically put up anything that's "yours" and the license wasn't really their concern - that isn't the case with…

(SSG - static site generator) I mean, it is arguably much easier to just write the HTML page and upload it with FTP and everyone can see it. I never understood why github became a popular place to host your site in the first place.

There are multiple reasons why FTP by itself became obsolete. Some of them I can think of off the top of my head:

1) Passive mode. What is it and why do I need it? Well, you see, back in the old days, .... It took way too long for this critical "option" to become well supported and used by default.

2) Text mode. No, I don't want you to corrupt some of my files based on half-baked heuristics about what is and isn't a text file, and it doesn't make any sense to rewrite line endings anymore anyway.

3) Transport security. FTPS should have become the standard decades ago, but it still isn't to this day. If you want to actually transfer files using an FTP-like interface today, you use SFTP, which is a totally different protocol built on SSH.

Re: Moving from GitHub to Codeberg, for lazy people

#242

Earlier quoted context omitted.

I've had the same experience. Philosophically I think it's terrible that Cloudflare has become a middleman in a huge and important swath of the internet. As a user, it largely makes my life much worse. It limits my browser, my ability to protect myself via VPNs, etc, and I am just browsing normally, not attacking anything. Pragmatically though, as a webmaster/admin/whatever you want to call it nowadays, Cloudflare is…

> and use robots.txt as a guide of what to crawl rather than what not to crawl Mental note, make sure my robots.txt files contain a few references to slowly returning pages full of almost nonsense that link back to each other endlessly… Not complete nonsense, that would be reasonably easy to detect and ignore. Perhaps repeats of your other content with every 5th word swapped with a random one from elsewhere in the co…

This is one reason why most crawlers ignore robots.txt now. The other reason is that bandwidth/bots are cheap enough now that they don't need web admins to help them optimize their crawlers

Re: Moving from GitHub to Codeberg, for lazy people

#243
post #192
post #180

Earlier quoted context omitted.

Because it doesn't require you to run an HTTP server, FTP server, or install an FTP client.

Finding an HTTP+FTP server was easier than finding github. Your OS probably has a FTP client installed already, but finding another one is easier than finding and most definitely easier than learning git. And if you already knew how to write/make HTML you'd for sure already know all of that too.

I touched on the issues with FTP itself in another comment, but who can forget the issues with HTTP+FTP, like: modes (644 or 755? wait, what is a umask?), .htaccess, MIME mappings, "why isn't index.html working?", etc. Every place had a different httpd config and a different person you had to email to (hopefully) get it fixed.

Re: Moving from GitHub to Codeberg, for lazy people

#244

Earlier quoted context omitted.

Unfortunately I don't think there's really an answer to that conundrum that doesn't involve just spinning up your own git server and accepting all the operational overhead that comes with it. Hmm all that operational overhead... Of an ssh server? If you literally just want a place to push some code, then that really isn't that hard.

But they don't literally just want a place to push some code. The problem statement included "if GitHub Pages is why you used GitHub".

And before that it said...

but if you're just looking for a generic place to put your code projects that aren't necessarily intended for public release and support (ie. random automation scripts, scraps of concepts that never really got off the ground, things not super cleaned up), they're not really for that - private repositories are discouraged according to their FAQ and are very limited (up to 100mb).

You don't need a one size fits all solution...

Re: Moving from GitHub to Codeberg, for lazy people

#245

Earlier quoted context omitted.

Unfortunately I don't think there's really an answer to that conundrum that doesn't involve just spinning up your own git server and accepting all the operational overhead that comes with it. Hmm all that operational overhead... Of an ssh server? If you literally just want a place to push some code, then that really isn't that hard.

Exactly, it's super easy. You only need the first part of this guide https://www.youtube.com/watch?v=40SnEd1RWUU

Do most vps providers enable password based ssh access on first boot up? That video doesn't seem very relatable.

Re: Moving from GitHub to Codeberg, for lazy people

#246

Repo hosting is the kind of thing that ought to be distributed/federated. The underlying protocol (git) already has the cryptographic primitives that decouples trust in the commit tree (GPG or SSH signing) with trust in the storage service (i.e. github/codeberg/whatever). All you need to house centrally is some SSH and/or gpg key server and some means of managing namespaces which would benefit from federation as well…

I have zero trust in the average dev managing signing keys properly

Re: Moving from GitHub to Codeberg, for lazy people

#247
post #231

I don't dislike Codeberg inherently, but it's not a "true" GitHub replacement. It can handle a good chunk of GitHub repositories (namely those for well established FOSS projects looking to have everything a proper capital P project has), but if you're just looking for a generic place to put your code projects that aren't necessarily intended for public release and support (ie. random automation scripts, scraps of con…

GitLab is probably a better option for that.

Yeah, but ooh boy is a private gitlab server complicated. Omnibus installation helps manage that, but if you outgrow it you're in for a complicated time.

Also gitlab has cves like every other week... You're going to be on that upgrade train, unless you keep access locked down (no internet access!!) and accept the admittedly lower risk of a vulnerable gitlab server on your LAN/VPN network.

Even if gitlab is updated fully, you're fighting bot crawlers 24/7.

Re: Moving from GitHub to Codeberg, for lazy people

#248

I don't dislike Codeberg inherently, but it's not a "true" GitHub replacement. It can handle a good chunk of GitHub repositories (namely those for well established FOSS projects looking to have everything a proper capital P project has), but if you're just looking for a generic place to put your code projects that aren't necessarily intended for public release and support (ie. random automation scripts, scraps of con…

FWIW, Pierre's "Code Storage" project [1] seems like it simplifies a lot of the operational overhead of running git servers, if what you want is "an API for git push". Not affiliated with the company (and I haven't tried it myself, so I can't vouch for how well it works), I just think it's a neat idea. 1: https://code.storage/

I think "Code Storage" (definitely needs a unique name), is less an API for git push (surely git push is that API?), and more an API for "git init"? It seems to be Git as infrastructure, rather than Git as a product. i.e. if you're using it for a single repo it's probably not a good fit, it's for products that themselves provide git repos.

Re: Moving from GitHub to Codeberg, for lazy people

#249

I don't dislike Codeberg inherently, but it's not a "true" GitHub replacement. It can handle a good chunk of GitHub repositories (namely those for well established FOSS projects looking to have everything a proper capital P project has), but if you're just looking for a generic place to put your code projects that aren't necessarily intended for public release and support (ie. random automation scripts, scraps of con…

What you said about the pages is just plainly false information. I host my website on CodeBerg pages. https://docs.codeberg.org/codeberg-pages/

Re: Moving from GitHub to Codeberg, for lazy people

#250
post #23

Earlier quoted context omitted.

Maybe I'm too old school, but both GitHub and Codeberg for me are asyncronous "I want to send/share the code somehow", not "my active workspace I require to do work". But reading > the worst thing ever for me as a developer is having the urge to code and not being able to access my remote. Makes it seem like GitHub/Codeberg has to be online for you to be able to code, is that really the case? If so, how does that hap…

I was shaking my head in disbelief when reading that part too. I mean, git's whole raison d'etre, back when it was introduced, was that you do not need online access to the repo server most of the time.

> I mean, git's whole raison d'etre, back when it was introduced, was that you do not need online access to the repo server most of the time.

So what ? That's not how most people prefer to use it.

Post reply on HN