Why developers are ditching GitHub for Codeberg and self-hosting alternatives

Why developers are ditching GitHub for Codeberg and self-hosting alternatives

为什么开发者正在抛弃 GitHub,转投 Codeberg 和自托管替代方案

By many measures, GitHub is as popular as ever. One new user joins every second, the service hosts over 600 million repositories, and nearly one billion commits were made in 2025. But scratch the surface, and something else is going on. Some users are concerned about a range of issues, from technical problems like frequent downtime to the service’s political direction, especially since it was taken over by Microsoft. A few high-profile projects have taken things much further, abandoning the offering altogether, in a move that may represent the beginnings of a more widespread exodus.

从多项指标来看,GitHub 依然如日中天。每秒钟都有新用户加入,该平台托管了超过 6 亿个代码仓库,2025 年的提交次数接近 10 亿次。但深入表象之下,情况却并非如此。一些用户对各种问题感到担忧,从频繁宕机等技术故障,到该服务(尤其是被微软收购后)的政治导向。一些备受瞩目的项目已经采取了更激进的行动,彻底放弃了该平台,此举可能预示着一场更大规模“出走潮”的开始。

Some key players have abandoned GitHub: A slow trickle that may gain momentum

一些关键参与者已经放弃了 GitHub:一场可能愈演愈烈的缓慢流失

When you’re searching for open-source software, it can seem like every project is hosted on GitHub. Even the Linux kernel source code has a read-only GitHub mirror, although its main home has a domain of its own. But this isn’t always the case, and it may become less and less so if moves by a handful of projects become a wider trend.

当你搜索开源软件时,似乎每个项目都托管在 GitHub 上。即使是 Linux 内核源代码也有一个只读的 GitHub 镜像,尽管其主要主页拥有自己的域名。但情况并非总是如此,如果少数项目的举动演变成一种更广泛的趋势,这种情况可能会越来越少见。

Probably the highest-profile departure so far has been Ghostty, a cross-platform terminal emulator. The project’s maintainer, Mitchell Hashimoto, announced in April 2026 that Ghostty was leaving GitHub, although not immediately: “It’ll take us time to remove all of our dependencies on GitHub and we have a plan in place to do it as incrementally as possible. We plan on keeping a read-only mirror available on GitHub at the current URL.”

迄今为止最引人注目的离开者恐怕是跨平台终端模拟器 Ghostty。该项目的维护者 Mitchell Hashimoto 在 2026 年 4 月宣布 Ghostty 将离开 GitHub,尽管并非立即执行:“我们需要时间来移除所有对 GitHub 的依赖,我们已经制定了尽可能循序渐进的计划。我们打算在 GitHub 的当前 URL 上保留一个只读镜像。”

Zig, a system programming language that’s a spiritual successor to C, also announced its departure, back in November 2025. The project made its first commit back in 2015, and enjoyed an uninterrupted run on GitHub, until recently. Another significant project that’s made a switch is Tenacity. This cross-platform audio editor announced its move on a Reddit forum in 2023 and now only maintains a mirror presence on GitHub. Alongside these more prominent repos, many other projects have migrated, such as the Dillo web browser and the Hare programming language. Even more were never on GitHub in the first place, choosing to self-host their repositories, like GNOME or Apache’s vast array of software.

Zig 是一门被视为 C 语言精神继承者的系统编程语言,也于 2025 年 11 月宣布离开。该项目于 2015 年进行了首次提交,并在 GitHub 上保持了不间断的运行,直到最近。另一个做出切换的重要项目是 Tenacity。这款跨平台音频编辑器在 2023 年于 Reddit 论坛上宣布了迁移,现在仅在 GitHub 上保留一个镜像。除了这些知名仓库外,许多其他项目也已迁移,例如 Dillo 网络浏览器和 Hare 编程语言。还有更多的项目从一开始就从未在 GitHub 上托管,而是选择自托管其仓库,例如 GNOME 或 Apache 庞大的软件阵列。