Gentoo 在 Codeberg 上
Gentoo on Codeberg

原始链接: https://www.gentoo.org/news/2026/02/16/codeberg.html

Gentoo 已经在 Codeberg ([https://codeberg.org/gentoo/gentoo](https://codeberg.org/gentoo/gentoo)) 建立了其主仓库的镜像,作为计划迁移离开 GitHub 的一部分。这提供了一个替代的贡献平台。 Codeberg 是一个位于德国的、基于 Forgejo 的非营利平台。重要的是,Gentoo 仍然*托管*自己的仓库;Codeberg 作为一个方便的贡献镜像,类似于之前的 GitHub 镜像。 鼓励贡献者使用“AGit”方法提交拉取请求——克隆上游仓库并直接推送到 Codeberg 分支——这样可以避免分叉的需要。关于这种方法的详细说明,包括推送和强制推送更新的命令,可在 Gentoo wiki 上找到。此举旨在拓宽贡献选项,并符合项目的长期目标。

Gentoo,一个Linux发行版,已将其代码仓库从GitHub迁移至Codeberg,引发了关于潜在的去中心化趋势的讨论。多年来,GitHub庞大的开发者群体和拉取请求等功能是主要优势。然而,人们对GitHub日益整合专有工具(如Copilot)和最近的价格变化表示担忧。 用户推测,这可能是项目重新评估集中代码于单一平台的优点的开端。Codeberg因其速度、易用性而受到赞扬,代表着向更分散和“更少单一文化”的互联网迈进。尽管Gentoo历来保持独立,但此次迁移被视为一个积极信号,表明GitHub的替代方案对于大型项目是可行的。
相关文章

原文

Codeberg logo

Gentoo now has a presence on Codeberg, and contributions can be submitted for the Gentoo repository mirror at https://codeberg.org/gentoo/gentoo as an alternative to GitHub. Eventually also other git repositories will become available under the Codeberg Gentoo organization. This is part of the gradual mirror migration away from GitHub, as already mentioned in the 2025 end-of-year review. Codeberg is a site based on Forgejo, maintained by a dedicated non-profit organization, and located in Berlin, Germany. Thanks to everyone who has helped make this move possible!

These mirrors are for convenience for contribution and we continue to host our own repositories, just like we did while using GitHub mirrors for ease of contribution too.

If you wish to submit pull requests on Codeberg, it is recommended to use the AGit approach as it is more space efficient and does not require you to maintain a fork of gentoo.git on your own Codeberg profile. To set it up, clone the upstream URL and check out a branch locally:

git clone [email protected]:repo/gentoo.git
cd gentoo
git remote add codeberg ssh://[email protected]/gentoo/gentoo
git checkout -b my-new-fixes

Once you’re ready to create your PR:

git push codeberg HEAD:refs/for/master -o topic="$title"

and the PR should be created automatically. To push additional commits, repeat the above command - be sure that the same topic is used. If you wish to force-push updates (because you’re amending commits), add “-o force-push=true” to the above command.

More documentation can be found on our wiki.

联系我们 contact @ memedata.com