Hacker News new | ask | show | jobs
by melx 1129 days ago
I'm going to self-host my git repos. Any recommendations?

The git+nginx would suffice but it does not offer GUI. I need one to see the changes proposed (aka PRs).

Gitea is nice, but a bit overkill for my needs. I don't need CI, files hosting, issues, team members, releases, wiki, forking/watching/staring, etc.

3 comments

Gitea is pretty light on resources so even though it has a extra functionality you don't need it's not really a resource pig. Unlike say, GitLab.
Gitea requires a database which is unwanted feature for "git server" in my little world.

I'm just looking for "website" (read: interface) that list files over HTTPS, with the ability to show nice looking diffs. Some sort of ssh keys(?) to prevent unauthorized access etc.

Maybe something like gitweb? https://git-scm.com/docs/gitweb

I have not used it before, but it seems like it follows your requirements (Except auth using SSH keys maybe, but that could be a task for e.g. Nginx)

Thanks, I discovered "git instaweb" which is based on gitweb. It's nice and offers mostly what I'm after,but the 100% layout width is terrible (no opt to configure it).
Maybe something like gitolite then?

https://github.com/sitaramc/gitolite

I've not used it personally though, so no idea how well it works in practise.

Thanks! Gitolite doesn't offer any UI for what I see. Also to set it up is too complicated.

I just found about "git instaweb" (developed by Git authors, but it's extra OS package) - it works locally, probably what I was looking for (minus the 100% width page layout).

BTW There's Gitblit is someone's fancy hosting Java app.

> going to self-host my git repos. Any recommendations?

Depending on your needs, this can be as simple as sticking repos on any server you have and cloning/pulling/pushing over ssh. If you want something more sophisticated, though, there's a handful of nice applications (gitea is being suggested further up-thread).

imho Gitea is so smooth to deploy and manage that it's worthwhile even if you don't need its advanced features.