Migrating from GitHub to Codeberg
77 points by yorickpeterse
77 points by yorickpeterse
While Codeberg allows for private repositories, this is limited to specific scenarios such as a private repository that supports a free-software project (e.g. a private project used for reporting security vulnerabilities). I have a few repositories used to build bootc server images/updates, and to track some private data (e.g. tasks to do around the house), none of which fall within the scope of what Codeberg allows.
I would be shocked if anybody at Codeberg would object to you using private repos for this, especially since you're doing actual FOSS work on the platform and not just using it as free file hosting. I think the current policy on private repos is deliberately a bit vague specifically to allow for cases like this. Quoting the FAQ:
If you are a contributor to free/libre software projects, we allow up to 100 MB of private content for your convenience. Use it for your personal notes, your side project or any other you want to keep private.
(I don't mean to dissuade you from hosting your own Forgejo instance; I just wanted to point out that I don't think this would have been a problem.)
It's possible they'd allow it, but I'm not sure they'd also be happy about the storage requirements. Looking at my instance's statistics, I'd need about 3-4 GiB of container/package storage, which is well over the 100 MiB limit.
Aside from that, having the private instance means I have a sort of escape hatch for e.g. running CI tests should Codeberg ever be unavailable for longer periods of time.
There is also codefloe running forjego (a fork with some custom patches, apparently).
Indeed, but Codeberg's stance on AI clicked more with me than Codefloe's "AI is fine" stance.
While Git is distributed by design, this still feels like replacing one thing with another very similar thing - you're still at the mercy of a single Git hosting provider's uptime.
Git's distributed nature makes it interesting to think about truly distributed, resilient repositories. It would be awesome if we could take better advantage of that. State synchronisation won't be a trivial problem to solve, though.
Something like Radicle would be nice, but in a more mature and less complex form.
In principle, moving away from GitHub is a good direction. We need more diversity in Git forge usage. I've always been puzzled by people new to Git conflating Git with GitHub.
One of my biggest gripes with Forgejo is copying GitHub’s patterns all the way to the YAML soup for Actions. It ends up just being Microsoft, but leaner & open source. This isn’t differentiating enough to convince a lot of folks as it’s purely philosophical instead of being largely technically superior too since it’s usually copying their homework (I say this while strongly agreeing with that philosophy & considering Codeberg the closest thing I have to my ‘primary’ Git forge).
But I think the Git distribution problem goes back to the fundamentals of being snapshot based. Ultimately without bolting an entire sidecar system to Git, some place has to be the canonical repository since things like patch order not distributing means you need to sync up with a single place. You can help (tho not eliminate) part of these concerns for distribution with Patch Theory (used by Darcs & Pijul) which allows the patches to commute & treats the patch/diff as a fundamental unit. I would rather see more efforts in this direction if wanting to be obviously counter to the Microslop platform since it can offer something technically superior. You can say there are less tools, but part of free software is pitching in to create these tools (I’ve made couple of Darcs things & want to make some Pijul ones too).
so my main use for github/codeberg is some kind of issue tracker + CI that also publishes containers for people who asked me about having that - I don't really care about the distributed feature apart from everyone being able to simply git clone and re-use in case my repo should go away
One of my biggest gripes with Forgejo is copying GitHub’s patterns all the way to the YAML soup for Actions. It ends up just being Microsoft, but leaner & open source. This isn’t differentiating enough to convince a lot of folks as it’s purely philosophical instead of being largely technically superior too since it’s usually copying their homework (I say this while strongly agreeing with that philosophy & considering Codeberg the closest thing I have to my ‘primary’ Git forge).
Unfortunately I think the success of Forgejo is because it is just like Github. There are forges doing their own thing (like Sourcehut), but those are not gaining nearly as much popularity.
There is Tangled which uses ATProto to split the classic forge into frontend and PDSes (known as “knots” in local terminology) - it’s not truly distributed nor particularly simple, but it at least allows ownership of the repo contents and identity to be separated from the forge.
Just a nit: the PDS is just the account provider, the knots are the git servers which are a separate thing. Tangled the company provides hosted versions of both, but you could combine an account from e.g. Bluesky PDS or a self-hosted PDS with their knot server or a self-hosted knot. They explain the separation here: https://tangled.org/docs/introduction/#hosted-and-self-hosted. There's also self-hostable CI servers ("spindles")
Imho git is the smallest part of the forge experience. What people usually want is issues, a way to contribute (usually PRs/MRs), and maybe a readme as a landing page. If they wanted just git, they could just push to any remote with an sshd and git installed. Distributed systems usually have such bad UX compared to their centralised counterparts in my experience that this doesn't seem hugely attractive to me.
Well done! I recently moved almost everything off Github. It wasn't much, a lot of my repos post covid started on codeberg or sourcehut anyway. But, it feels nice. Even my blog is off Github as of 7 months ago. Feels really good!
My last remaining repo is my resume. Codeberg is nice, but I figure nobody in corpo land ever blocks github. Being able to send link to my resume already landed me one good job in the past, so I wanna keep that option. Maybe I should convert it into a mirror of codeberg. That would be nice :)
I've set up two repositories to also mirror to GitHub, and it seems to work well enough so far, so that may be an option.
I think If i ever pull the trigger on moving off of Github, I would probably move to Tangled myself. Seems more of what I am looking for.
Also, I am not the kind of dev codeberg likes anyway, so I am effectively barred from using Codeberg.
Does anyone know what became of @mitchellh saying that Ghostty would move off GitHub? https://mitchellh.com/writing/ghostty-leaving-github
Does someone have a recommendation for a forge to switch to that is fine with LLM-written code? I know Codeberg and Sourcehut forbid it.
I use more or less LLM code depending on the repo and always disclaim it (for personal use only I find heavy use of LLM perfectly fine for example). But I still want to push all my repos somewhere.
This was a great writeup!
Also, thanks @yorickpeterse for confirming that I'm not the only person who only really uses Github's "starring" of repos as a bookmark tool. But, lately, I've been thinking that I should export all the repos that i starred, and simply make them into a folder of urls in my browser's native bookmarks tool...and, sure, if/when a repo goes away from GitHub the bookmark breaks, but that would happen also whether its a bookmark or a star anyway...So, now, where's that python script I wrote years ago for exporting stuff out of GitHub? :-D
I also used GitHub stars as bookmarks in the past. At some point imported them to Linkding and never looked back.
Thanks so much for sharing! I have my own little python script...but much more prefer your approach. :-)
At least GitHub still owns their domain 🫣 https://lobste.rs/s/spmgsd/codeberg_s_domain_suddenly_disappeared
I migrated some repos like my NixOS config and some personal only projects over to codeberg a while back but. I think Forgejo is nice but I've found that the availability has been worse than github ironically, at least I've been burned by downtime more often when I need access. It's really unfortunate.
I have mitigated this with a private forgejo instance on a private server that mirrors everything upstream to codeberg (its a forgejo buildin feature). So the clients talk to my private instance fast and reliable and forgejo takes over the mirroring to codeberg.
I've been thinking of something similar. For example, for Inko there are some release pipelines which I'd like to be able to run even when Codeberg is down. Running those locally is a tad annoying as it involves building outputs for different architectures.
Using a private instance for that makes it more reliable. I think the main issue is that I really prefer for work to be public (probably due to my time spent at GitLab which had a big focus on that), so pushing some work to a private instance feels "wrong" in a sense.
About a year ago I started mirroring my public GitHub repos to Codeberg and moved all my private ones to SourceHut. SH has had some availability issues due to bots in the last couple of months, but its CI is very powerful (it did require rewriting the workflows), and I like it. They're also anti-AI and you pay what you can.
I didn't "migrate" the public repos from GH to CB only because of the community size difference. Maybe that'll eventually happen if things do get too crazy at GH.
I did write a little bit about the CI differences about 6 months ago: https://news.onbrn.com/migrating-from-github-actions-to-sourcehut-builds/
Thanks to the ongoing digital opioid crisis rise of "AI", this barrier dropped through the floor half way to China, for now one can "contribute" by just prompting a digital talking parrot high on cocaine Claude Code to submit pull requests containing thousands of lines of pure nonsense.
While the slop "contributions" I've had to deal with personally have been small enough/simple enough to deal with so far, the writing is on the wall: GitHub is no longer the place where developers collaborate, but rather a place where "agents" projectile-vomit slop that serves no other purpose but to boost their owner's ego.
Inaccurate and cringeworthy. Prime example of human slop.
You've made the mistake of not realizing overly dramatic exaggeration is completely acceptable when it is done in support of a popular opinion.
Obviously comparing AI (sorry, "AI") to the opioid crisis, which has taken the lives of a million people, is an absurd exaggeration no one would sign onto in normal circumstances. But we're on a site full of people who are apparently living in abject fear of "AI" so it's cool to do so. Obviously, the death of a million people is more significant than someone getting a pull request made by AI, but, perhaps to the author, a million lives are not particularly valuable and being annoyed by an AI pull request is truly a much greater, or at least equivalent, tragedy.
Maybe next time someone will compare the rise of "AI" to the holocaust and people will be able to recognize how unacceptable that is. Or maybe it will get a bunch of upvotes and everyone will cheer!
The comparison is made because similar to any addiction epidemic, the AI hype has many similarities such as: people in denial about the cost/benefit, arguing they can quit any time, losing the ability to think critically, and essentially turning into tech bro equivalents of junkies.
Your reply is very much part of that problem: rather than think about it, you immediately dismiss it as the equivalent of "it's not me who's wrong, it's everybody else".
Go talk to people who've recovered from addiction and you'll likely realize just how similar the AI hype in fact is. Maybe you'll learn something along the way.
Do you really not realize how what you are saying is completely tasteless? It's not hard to understand. Comparing usage of a technology you do not like to a crisis that has taken the lives of a million people and counting is extremely insensitive to anyone who has lost someone to drug addiction.
And stop being so condescending, it's pathetic. "Maybe you'll learn something along the way," but you're the one who can't make a point without extreme exaggeration in an attempt to "other" people who engage with something you don't like. Does it actually make you feel better to pretend everyone who uses AI is a "junkie"? If it does, you should take a good look in the mirror. You must be a nasty, horrible person, to be full of so much hate and derision for your fellow man. All because you don't like a technology? I think it is you who has a lot to learn, about being a kind and decent human being. Good luck, I hope you have a great time living in the world as AI proliferates and you're just angrily typing on the internet about how everyone who doesn't agree with you is basically a drug addict!
fleshbags always think contributions aren't valid just because they used a modern development workflow. Then you look at what they're doing, and it's 3 typo fixes in as many months. Meanwhile I rewrote glibc in rust🦀🚀 in the same time with a single prompt loop and a verifier harness. "Left behind" does not even begin to describe these people.
And yes, it passes all tests.