Hacker News new | past | comments | ask | show | jobs | submit
If you can host locally, forgejo is a good option.
Forgejo is hosted on Codeberg!
haha indeed, and Codeberg is built on Forgejo! :-D

  Codeberg ──runs──▶ Forgejo ──forked from──▶ Gitea ──lives on──▶ GitHub
     ▲                                                              │
     └──────────────── hosts Forgejo ◀──────────────────────────────┘
Gitea is superb too. Especially if you're going to set up a local git server for your agents to spazz on. It has built-in MCP support or something. The performance is shockingly good.
Or gitolite + cgit if you don't need the additional features like issue tracking and pull requests. It's harder to set up than Gitea, Forejo, or GitLab, but is a lot more flexible with things like repository layout. I've written custom install scripts to help with this.

You can use SSH directly, but using something like gitolite makes managing the git repos easier.

My main gripe with this setup (gitolite + cgit) is the lack of repository labels/tags. You can define a namespaced/scoped category, but that's not as flexible as a hierarchical tag system.

Also for solo projects, just git on its own is pretty good as well.
Yep. Not enough people know you can just "git init" a folder either on your machine or on any machine you can SSH into, and it just magically works.

The syntax for SSH access is user@hostname:/path/to/git/repo which you might recognise from github. You can use this syntax with any machine, not just GitHub. It invokes a real ssh subprocess to do the connection, so all of your .ssh config and private keys apply. It runs an internal git command on the server to do the data transfer (git receive-pack or git upload-pack).

> Not enough people know you can just "git init" a folder either on your machine or on any machine you can SSH into, and it just magically works.

Though obviously don't forget to make sure this location is included in your backups, or at very least clone the repo at another location and keep that location uptodate with regular pushes/pulls (depending on which you consider your origin), lest you become one of the “disk/filesystem corruption ate my repo, and it was the only full copy” horror stories.

Yes. It really changes your viewpoint on things when your repo is not some abstract cloud thing, but a folder like any other.
I'd say Tangled.org is the best option.
thanks. well I can host my own git or Forgejo anywhere, and without need for DNS (pure IPs etc), but Codeberg.org meant for a distinct role analogous to Github.