this post was submitted on 21 Apr 2025
37 points (100.0% liked)

Programming

19750 readers
62 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

It seems that GitHub is being blocked in my region as well as other options from U.S. based companies (e.g. GitLab)

Where should I migrate my repos? Codeberg is an option as it’s Europe based so isn’t blocked in my region. Codeberg Pages is also nice to have. However, Codeberg seems to push for excluding proprietary software dependencies, which might limit the kinds of projects I can do.

Another option is to self-host Gitea, I could use my old laptop for that. Gitea doesn’t have a GitHub pages, but there seems to be third-party plugins that allow that. The downside with self-hosting (for me) is that it means I’m unable to collaborate with others (since it’ll be local) and I can’t easily share my projects. It will also probably be harder to set up.

What other options are there, or are these two the best options for me?

edit: decided on Codeberg, how do I make my static pages to work with Codeberg Pages? I've switched to a "pages" branch and the website doesn't work (https://username.codeberg.page/repo-name/)

How do I make static pages work with Codeberg???

top 19 comments
sorted by: hot top controversial new old
[–] deathmetal27@lemmy.world 30 points 4 days ago (2 children)

Forgejo. It is a fork of Gitea.

[–] kensand@sopuli.xyz 14 points 4 days ago (1 children)
[–] scheep@lemmy.world 14 points 4 days ago (2 children)

how so? Is it easier to set up or have more features? What's the difference? please educate me :D

[–] 3h5Hne7t1K@lemmy.world 8 points 4 days ago (1 children)

Not sure if its better, did both and i havent noticed much difference. Forgejo runs codeberg though and is maintained by them. Also has CI with forgejo actions.

[–] mbirth@lemmy.ml 2 points 4 days ago (1 children)

And Gitea has Gitea Actions. The big difference - and also the sole reason ForgeJo was forked - is that Gitea has a business behind it that allows them to sell support hours to other businesses. And then use the money to progress Gitea. Similar to how Zabbix and others do it. But the community decided that this is a bad thing and moved to ForgeJo.

[–] Dunstabzugshaubitze@feddit.org 13 points 4 days ago (1 children)

gittea ltd was founded without adhering to the governance model gittea had and also claimed copyright on atleast the name and logo of gittea. many felt a non-profit would be a better way to organize development and thats how codeberg e.v. came to be.

the problem is not, and never was offering support and service against money, you can right now start selling forgejo if you'd desire to, it was allways about how the project itself should be organized.

[–] mbirth@lemmy.ml -3 points 3 days ago

While a non-profit sounds very honourable, I personally think Gitea has the more future-proof model. In fact, Gitea Actions was something they got commissioned for and were allowed to open source it as well.

This is basically how I think about it. (Not my comment.)

But we’ll see…

[–] mbirth@lemmy.ml -1 points 4 days ago

how so?

I'd like to get educated as well, please. So far, ForgeJo doesn't seem to have any specific advantage over Gitea. (And the name couldn't be worse...)

[–] scheep@lemmy.world 6 points 4 days ago (1 children)
[–] kensand@sopuli.xyz 9 points 4 days ago (2 children)

https://forgejo.org/compare-to-gitea/

CI actions and actually being free software are my main notes, but there are many reasons.

[–] scheep@lemmy.world 2 points 4 days ago* (last edited 4 days ago) (1 children)

wait...how is forgejo developed on forgejo? If there is no forgejo to begin with, how did they begin developing?

edit: maybe they switched from github to forgejo a bit later?

[–] kensand@sopuli.xyz 6 points 3 days ago (1 children)

This process is called 'bootstrapping', and is actually quite common in software. For example, the C compiler is written in C. The first iteration of the C compiler was written by hand in assembly code with a very limitted feature set, and that compiler was then used to compile the next iteration, allowing the second version (I'm not sure it was actually the second version; there may have been a few iterations in assembly) to be written in C itself.

For Forgejo, you dont actually need Forgejo to build Forgejo; just a computer with the Go compiler and any other dependencies. Then, once you have the first version, you can publish the code you have on Forgejo. Nothing too crazy there 🙂

This also leads to 'dogfooding', which is a whole other term...

[–] scheep@lemmy.world 1 points 3 days ago

ahh okay :0

[–] scheep@lemmy.world 1 points 4 days ago
[–] kensand@sopuli.xyz 19 points 4 days ago (1 children)

Since you're a bit concerned about self hosting and collaboration, I would recommend Codeberg - they are a non-profit based in Germany with widespread support and, as far as I know, is the public Forgejo instance with the largest user base.

If you want, you can also host your own Forgejo instance and mirror your Codeberg repos to it. That way you can have two copies of your data, just in case Codeberg ever goes offline.

You could also potentially use Gitlab, but I would personally prefer something Forgejo based. Forgejo has been much more responsive/snappier in my opinion; Forgejo is primarily written in Go, while Gitlab is mostly Ruby.

[–] scheep@lemmy.world 3 points 4 days ago

ah okay I'll try that

[–] solrize@lemmy.world 6 points 4 days ago (1 children)
[–] Ephera@lemmy.ml 5 points 4 days ago

However, Codeberg seems to push for excluding proprietary software dependencies, which might limit the kinds of projects I can do.

Well, they ask for software projects to be themselves under a FOSS license. If you can isolate the proprietary dependencies, you could still open-source the code.

Of course, you could also consider using Codeberg for all your open-source projects and then self-host a Git server for your proprietary projects.