this post was submitted on 16 Sep 2025
7 points (100.0% liked)

Selfhosted

51510 readers
146 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I've been recently dabbling on rust, and I am have been mostly doing that on my laptop. However, I also have a desktop and once in a while I would like to resume my stuff from the laptop, but without manual file transfers.

I know git by design does this, but I would like to use my current docker setup with Ubuntu server to have a very simple git server.

What would be the simplest git server to have in this situation? Keep in mind I am not planning to expose none of this to the internet

top 20 comments
sorted by: hot top controversial new old
[–] possiblylinux127@lemmy.zip 9 points 15 hours ago (2 children)
[–] Selfhoster1728@infosec.pub 3 points 12 hours ago

Forgejo my beloved 🥰🥰

[–] ikidd@lemmy.world 3 points 15 hours ago
[–] WIPocket@lemmy.world 15 points 1 day ago* (last edited 23 hours ago) (1 children)

The really simple setup for a single user is just a SSH server with access to storage and the git command. Assuming your laptop and desktop have SSH access to server, you can just:

ssh server git init --bare somerepo
cd somerepo
git remote add server server:somerepo
git push --set-upstream somerepo master #(or main)

and then git clone server:somerepo.

For something slightly higher-tech, I recommend going with Forgejo (the fork of Gitea). It is really easy to set up and low maintainance.

Avoid GitLab for small setups, it is fairly resource hungry.

[–] portnull@lemmy.dbzer0.com 1 points 22 hours ago

This is the correct answer

For something more than bare got and lower than forgejo I can recommend soft-serve

[–] irotsoma@lemmy.blahaj.zone 2 points 17 hours ago

I use forgejo on a raspberry pi.

Second Forgejo. Easiest deploy I've ever done.

[–] rozodru@piefed.social 2 points 23 hours ago

I have a private instance of Forgejo in docker on my server. took me all of 5 minutes to set up. I did this only because I wanted a web based GUI for some stuff.

[–] SpookyMulder@twun.io 2 points 1 day ago

SSH is all you need. You can clone directly from one .git directory to another.

e.g

git remote add desktop git@desktop:project/.git
git push desktop main --set-upstream
[–] portnull@lemmy.dbzer0.com 1 points 22 hours ago (1 children)
[–] sylphio@lemmy.ml 0 points 11 hours ago (1 children)

Do you have any experience with it? I am curious about it and wonder how is the usability in its current state. I have not seen any independent review or feedback about it yet.

[–] portnull@lemmy.dbzer0.com 1 points 2 hours ago

I use it for my personal projects and its perfectly usuable. If you want people to contribute you'll just have to do it the old fashioned email patch way. You can use RSA keys but it requires a little fiddling. I've used them but needed to massage something. Now I just use ed keys. The SSH ui is perfectly fine. Your repos are stored as bare repos on the server in the configured directory. So they are easily backed up as regular files. It also supporta LFS.

Let me knownif you have any other questions

[–] bacon_pdp@lemmy.world 1 points 23 hours ago

git init --bare

And then just ssh to the server to push/pull. It can’t be any simpler

[–] WhatsHerBucket@lemmy.world 0 points 23 hours ago (1 children)

Check out Gitea. It was pretty easy to set up with docker and they have pretty decent docs.

[–] artiman@piefed.social 1 points 22 hours ago (2 children)

gitea has been replaced by forgejo

[–] cecilkorik@lemmy.ca 1 points 20 hours ago

You are correct, and I am still a bit sad about it, because gitea was a cuter name and logo TBH. But Forgejo is pursuing a technically superior design and socially better path at this point.

[–] TehNomad@piefed.social 0 points 19 hours ago (1 children)

I think Forgejo is a community-driven fork of Gitea. Gitea development is still active.

[–] possiblylinux127@lemmy.zip 0 points 15 hours ago (1 children)

Look at the number of commits

[–] corsicanguppy@lemmy.ca 0 points 14 hours ago (1 children)
[–] possiblylinux127@lemmy.zip 1 points 6 hours ago

Not necessarily

Notice Forgejo is being hosted on Forgejo. The community behind it is much stronger while Gitea is some startup that is desperately trying to be relevant.