Gitlab.com just started doing shady stuff and requiring phone numbers or something on sign-up if what I read a few days ago here, is correct. For self-hosting the software should still be alright.
Github.com is by Microsoft and not free software. I don’t know what direction Microsoft is taking with it, but it is widely adopted and they give you free CI and other stuff.
Codeberg, Sourcehut etc should be fine. I haven’t heard negative things about them.
“Best” is running my own Forgejo on my server. At least that’s what I think. But I also keep things on github, since all the people are there.
A controversial opinion, but github is the most widely recognized and worth the most on your resume.
-
You want your project to become popular, get stars and discussions ? : Github
-
You want control for your small hobby project ? : Self host Gitea or Forgejo
-
You don’t mind paying and supporting an open source developer ? : Sourcehut
-