Anyone knows a good lightweight self-hosted alternative to GitHub?

khoi@slrpnk.net to Selfhosted@lemmy.world – 119 points –

I'm looking to self-host a GitHub alt on a cheap Linux VPS for personal use. Any rec?

69

You are viewing a single comment

If you just want a remote to push your code to without issues, projects, pull requests and such you can use git only: https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server

This is actually a good idea! No need to over engineer stuff 😅

@khoi@slrpnk.net if you're okay with that I suggest you check out this https://gitolite.com/gitolite/overview.html.

In short "Gitolite allows you to setup git hosting on a central server, with fine-grained access control and many more powerful features.". It doesn't require some background daemon running, uses the server's SSH and it is a simple script that deals with access control so you can easily manage your users and repositories. The "cherry on top" is that you control your git "server" using a git repository :P