logoalt Hacker News

rhdunnyesterday at 4:48 PM11 repliesview on HN

It depends on what you are after?

1. Do you want something that works and feels like GitHub? -- Forgejo and Gitea are good for this.

2. Do you want a place to host git repositories with minimal hassle? -- GitLab, CodeBerg, and others are available.

3. Do you have your own hosting infrastructure? You could use gitolite and CGit/GitWeb on that hosting platform or local hardware.

4. Do you just want to host repositories? -- Gitolite can be used to help with SSH/auth/repository creation, and CGit or GitWeb for the frontend.

5. Do you need something like GitHub Actions? -- GitLab, Forgejo, and Gitea offer CI, or use external CI infrastructure.

6. Do you need issue tracking and management? -- GitLab, Forgejo, and Gitea provide these. There are alternatives from Jira to Kanban (including Trello) to Markdown (Obsidian and others) and more.


Replies

mejutocoyesterday at 5:51 PM

> 4. Do you just want to host repositories?

an ssh connection and

    git --bare init
on your ssh accessible server works just fine
show 5 replies
Bnjorogeyesterday at 5:41 PM

Hopefully a good spot to plug my own project, preloop, which is a drop-in replacement of Github actions(both the runners and control plane) that runs locally or self-hosted in isoalted microvms, and supports debug-on-failure. You can also push to the server, run CI and then optionally create a draft PR. Not quite production-ready yet(for the self-hosted part), but the local part works well. We implement the official runner protocol 100% unlike act/gitea/forgejo, so your workflows are more likely to work out of the box with preloop(forgejo has the closest compatibility with Github Actions though so it's a good off-Github option) and we use microvms so no DinD issues. I'm working on getting the official runner vm image up to reduce any environment incompatibilities. Feel free to try it out: https://github.com/preloopdev/preloop

show 2 replies
Melatonictoday at 7:12 AM

7. Do you want to impress the old Solaris admin that still wants to live like it's 1997? Use SVN hosted on an ancient Thinkpad with everything hosted on an ancient spinning disk external hooked to eSATA

elehackyesterday at 8:24 PM

If you want (4) and don't care about a web interface for managing repos, but do want Git-LFS, Soft Serve (https://github.com/charmbracelet/soft-serve/) works pretty well. I used it for self-hosted stuff until I started needing other features Forgejo offers.

show 1 reply
ljmyesterday at 5:41 PM

I'm quite partial to SourceHut as well but tbh I don't care about contributors and I like it because it is deliberately low-tech.

Maybe the CI could be a bit better (secrets management will sting you if you don't read the docs first), but that is also pretty no-nonsense and gets the job done.

If you like no-frills and an expectation that you know what you're doing, it's pretty sweet.

Would probably scare off most collaborators though but that, IMO, is part of the appeal. If you want to contribute then it's more likely you're invested and not driving by.

Also I like that it has a concept of projects so you can group repos together (which on GH would normally require creating an organisation account). And a repo can be public but unlisted, so it's open but not drawing attention.

show 1 reply
jolaflowyesterday at 8:49 PM

For issue tracking you may also be interested in Epiq. It is git-native, vendor agnostic, and distributed. Comes with a command line TUI, a browser GUI, mcp, and more. Also event sourced state with replay, which is super powerful for auditing workflows.

0xc133yesterday at 5:11 PM

*Forgejo

show 2 replies
tonymetyesterday at 5:19 PM

and you can stream your commits into any of these to improve deployment and commit availability when github is down.

osxmanyesterday at 5:17 PM

Forgejo == Codeberg

show 2 replies
als0yesterday at 5:24 PM

7. Do you want the most contributions?

I hate to admit it, but GitHub has a massive community. I’ve personally seen a project leave it and then contributions dropped significantly.

show 2 replies
godwinson__4-8yesterday at 7:04 PM

CodeBerg comes with the advantage that Euro social democrat style moral superiority comes for free. Never mind it has worse performance under less load and its bet for dealing with the future is treating anything LLM related as hostile.

https://blog.codeberg.org/protecting-our-floss-commons-from-...

You may agree with this. And if so, you have found your home. For those who just want to host, and not buy into this particular perspective, you should probably look elsewhere. I find a lot of people in the States promoting CodeBerg also have illusions about Europe, of the sort that are likely to be radically tested in the next decade, if not the next few election cycles alone.