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
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.
This is the correct answer
For something more than bare got and lower than forgejo I can recommend soft-serve
Forgejo
Forgejo my beloved 🥰🥰
I have a local Gitea hosting that backs up to a private gitlab account on their servers.
Many excellent replies. Just want to add https://github.com/charmbracelet/soft-serve as an option
Check out Gitea. It was pretty easy to set up with docker and they have pretty decent docs.
gitea has been replaced by forgejo
I think Forgejo is a community-driven fork of Gitea. Gitea development is still active.
forgejo is implementing federation and gitea is not https://forgejo.org/compare-to-gitea/ if you dont care that its community based, federation is the only thing i could tell you
I love federation, but why does a git server need federation? Am I missing something, or is this federating for the sake of federating?
You can make like a account on Codeberg and open issues on other git servers it’s not useful for developers it’s user friendly why is UX bad in your opinion?