Gentoo on Codeberg – Gentoo Linux

[keyword]



Codeberg logo

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

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

Currently submitting pull requests

If you want 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 git@git.gentoo.org:repo/gentoo.git
cd gentoo
git remote add codeberg ssh://git@codeberg.org/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 – make sure to use the same topic. If you want to force updates (because you are editing commits), add “-o force-push=true” to the above command.

More documentation can be found on our wiki.



Eva Grace

Eva Grace

Leave a Reply

Your email address will not be published. Required fields are marked *