Hi.
Recently I have been given a few questions of why I’m not using GitHub (except for Rust development), and also that if I decide to use an alternative, why is it not something like Codeberg. There are multiple reasons for this and I want to go over them here.
why leave GitHub?
To make this very clear - GitHub is a platform that means a lot for many people. I have met many developers who basically live on GitHub - it’s social platform features are unmatched. I want to talk a bit about GitHub’s strengths first.
GitHub strengths
GitHub has some great features. First, it’s mostly a social platform. You can coordinate PRs, issues, discussions, even project planning with your friends and colleagues. You can also use Sign In with GitHub, a very powerful (and sometimes only) way to sign into websites.
You also get an ability to connect your ORCID, set what happens to your account when you pass, use the pretty great GitHub Mobile app on your phone to run actions and do quick fixes on the go, and also be integrated into IDEs.
If you happen to use VSCode, then the integration goes even further - you can press the . character any time to bring up the web version of VSCode, logged into your account with all your settings and synced plugins. You can commit directly to the repo without checking it out locally. You can perform code reviews and open PRs.
Furthermore, on GitHub you have Codespaces - a remote VMs that you can develop on from anywhere, not having to worry about hosting the sourcecode locally first, but having the changes always synced and running on more powerful hardware, than what you have available. The whole concept of Remote Development is pretty well executed on GitHub.
Then you also have GitHub Pages - a way to host a SPA for yourself, or your project. You can use GitHub’s certificates for HTTPS, or use a custom domain.
Last, you have the GHCR - package registry, artifact uploads and release management. This is all backed by tools for code security that you can also install externally using GitHub Apps. With those, you can extend GitHub to do more - just like the bors bot does.
so then, why leave?
There are multiple issues, so let me try to explain them using topics.
reliability
Ever since the aquisition of GitHub by Microsoft, things have been going downhill fast. The reliability reports show as little as 84% uptime, a complete disaster. At work, we use GitHub daily, and I was getting so many emails of outtages, that I had to unsubscribe from the status page. Every day, upwards of 28 emails of some GitHub service going down.
The company has no CEO. Looking at their late focus being directed directly by Microsoft, it is to be expected that the platform has turned more into a server for Copilot, than focusing on itself.
There have also been issues reported regarding pull requests being randomly unmerged. This is absolutely insane and completely ruins any reliability one can expect of a platform.
features (somewhat improving)
Another very important area is new features (or lackthereof). GitHub recently finally release a preview for their new PR views, and finally fixing the main issues I had - commments were errenously hidden, new comments were at the bottom of the page, forcing me to scroll over dozens of events each time, status checks being at the very bottom, so I couldn’t check most of the PR description before merging.
It’s nice that these issues are finally getting addressed using the newer UI for PRs. I also welcome the PR list overview getting a compact option, and also the (now fairly old but still relevant) new Files Changed experience, that got a big performance update.
Unfortunately, that’s about where the new features end. Most of the features are focused on Copilot, and “agentic” development. This means there’s very little time or effort put into the core GitHub experience.
actions
What unfortunately doesn’t improve, is the absolutely atrocious actions system, including the basically unusable log viewer. When trying to debug actions, the whole system is buggy, regularly fails to start or respond to a stop. The whole system is often targeted by supply chain attacks. It’s held together by .yaml files, the servers take forever to startup and pickup the job.
There’s no simulator or anything close to that idea to try things out. Even trying an action works in a stupid way - if you change an existing workflow, you can see the changed workflow run in a PR where you change it. If you add a new workflow, there are case where such workflow doesn’t run until it’s merged to main.
general workflows
GitHub has issues with approvals for reviews when you rebase using the UI or outside of GitHub. The whole process is very against using rebase - it invalidates reviews, when using the GitHub UI it doesn’t sign the commits, and it spams the history with non-existent commits.
Another issue with rebasing is with the “Files Changed” tab. When you rebase, the entire “since last review” diff completely breaks, forcing you to re-review all code. This is cumbersome and very annoying. GitHub does everything to encourage using merge commits instead of rebasing, which makes the git history a complete mess, and isn’t even allowed on many open-source projects in the first place.
The general UI has gotten faster after I submitted a ticket to remove Copilot from my account, but it still is s
There’s many papercuts like this. Combined with the fact that Microsoft now owns and forges GitHub into their AI generator, I don’t want to really stick around - just for the fact that my code is being used to train AIs is something I don’t feel like doing voluntarily.
the alternatives
So then that brings us to the alternatives. We have multiple:
- GitLab
- Gitea
- Forgejo (and the whole idea of self-hosting)
- Codeberg
Each has their strengths and unique features. Some integrate well with other tools (IDEs, i. e.), while some are less featured. Each can also be selfhosted.
GitLab
GitLab comes first to mind. It’s primarily self-hosted, but there is an officialy hosted instance. The main issues remain like with GitHub - the UI is slow, it’s primary focus is soely on AI, and it’s overengineered for individuals and small groups. It has a nicer log viewer, though.
The paid plans are very expensive, but mostly include features for businesses.
GitLab has pretty great integration into tools.
Note that even selfhosted, GitLab is especially heavy on resources.
Gitea
This is a short one - it was bought off by some questionable investors and turned into mostly a private platform that has no transparency. Later, it was forked by Forgejo, where most development now happens. Ironically it has better support for IDEs compared to Forgejo.
I don’t know of anyone who uses this platform anymore, and it’s also not recommended from a security pov.
Forgejo
Forgejo is a self-hosted Gitea fork that’s being upkept and developed by a nonprofit. It’s pretty nice, but self-hosted. I think self-hosting is not something for me as I don’t have the infrastructure nor backup solutions. I also don’t have a public IP address, and doing tunneling doesn’t work well for sharing the sites with the public.
Forgejo has a UI very similair to GitHub - including PR workflows. Everything, up to the action files, works the almost same way. It’s just overall faster.
Codeberg
Codeberg is a hosted Forgejo by a nonprofit. It’s pretty good, but has a few severe limitations. First is runners. These are not yet properly introduced to the public, including the pricing for them.
Second is GPL required code. I don’t necessarily want or can have only GPL licensed code on my Git forge, so I tried it just for a while but ultimately decided to pick SourceHut.
Note to add is that Codeberg recently banned most AI generated code or code that was vibecoded.
Most IDEs don’t have an integrated PR browser mode, tho the codebases are stil similair enough that Gitea addons somehow mostly work.
sourcehut
Sourcehut is the platform I landed on. It has everything I want - a proper build system, it’s fast and has a indie vibe I really like.
To address this - sourcehut also has an anti-AI policy, seen here.
pricing
Note right from the beginning - SourceHut requires a paid account to host repositories. I have an older plan equaling about EUR24.90/year, but today there are more expensive plans only, with the cheapest one starting on about EUR49/year.
Three important details here: First is that any accessible price level gives you access to the entire platform. If you wish to give more, you can, but won’t get anything out of it. You should give as much as you feel you want to / are able to etc.
Second important detail is that there are student supported pricings available. If you write to the billing/pricing email on the site, you should get a grant to use sourcehut as a student.
features
Sourcehut has many features, including a fully fledged build system with ssh connections available for debugging when a runner fails (amazing feature), ticketing system, mailing lists for updates, code hosting including mercurial hosting and an IRC chat service, SPA webpage hosting, project systems, and more.
The whole UI is very rustic as people in the kitchen like to say, but it serves it’s purpose and works really well. It’s also incredibly fast.
There is also a hut cli tool available to manage the forge from your computer, similair to the gh tool for GitHub.
workflow
The workflow is different. Sourcehut has no PR mode. It uses patches and git-email for work. I find this much preferable when getting feedback on things in open-source world. The PR mode works well for long-standing open big changes, that need to be discussed by dozens of people in parallel in a corporate environment. I don’t think open-source works in a corporate environment.
One sideeffect is that on sourcehut, you don’t need have an account to contribute, you just need to have one to host the repositories. This makes it completely lock-free for contributing. I love this idea.
I don’t like the fact that GitHub marks changes as outdated all the time, without them being able to be re-reviewed properly. I don’t like that rebasing code makes the changed files tab break. I think the purpose of a code review is to get feedback and as such it’s precisely what it should do. The patch should be a few commits, if more than 3 at all.
The entire workflow makes more sense as in open-source development people actually matter and stand their positions. You don’t need 2 “random reviews” by replacable people. You communicate intentionally with the changes and reply intentionally to people using e-mail. It’s a little bit of a hassle to setup - yes, but it’s worth the time IMO.
projects
I also really like the idea of projects - they group together several repositories, mailing lists and issue trackers together into one UI. While GitHub does have the project system as well, and it’s not connected to any particular repo, the sourcehut system has some connections to the repos you include, and can also handle mailing lists and ticketing for a project.
sites
Sourcehut also allows you to host your own SPA site, as mentioned above. It allows you to also host wikis and format them using the integrated Markdown viewer. This is perfectly sufficient for my needs and my blog happily lives on Sourcehut.
other features
Sourcehut also allows you to host Mercurial hosting instead of Git (it has some cool features, but I suppose Git is the actual standard and for a pretty good reason).
Ther’s also the aforementioned IRC chat room, the ability to selfhost, and a paste service akin to GitHub Gists.
Sourcehut also works without JavaScript.
conclusion
I think I made my point fairly well. I enjoy the smaller community focused on hand-crafted code, I enjoy they quarterly updates provided by the maintainers, and I enjoy the features being centered around Git as a whole. It’s a joy to use and fun to work with. And they don’t learn on my code!