Recommendations for a source code hosting service
-
I am looking for recommendations for an open source self-hosted
version control systemsource code hosting service. I found a few, but I can't decide on which one to pick:If there's a better one than the ones I've listed here, I'd love to hear about it!
I care primarily about privacy and security, if that makes any difference.
+1 for Forgejo!
Just set it up with Docker this past week, it was fairly straightforward and has been working well since
-
To install gitlab:
- Yum install omnibus-gitlab
Done.
maybe the installation is simple, but the whole thing is still a beast and has tons of different services and does a lot of stuff. i prefer forgejo because of it's simplicity (still not super easy) and it takes less resources.
-
You're missing GitLab. I'd be looking at GitLab or Forgejo.
But you might not need this. When you access a private Git repository, you're normally connecting over SSH and authenticating using SSH keys. By default, if you have Git installed on a server you can SSH to and you have a Git repository on that server in a location you can access, you can use that server as a Git remote. You only really want one these services if you want the CI pipelines or collaboration tools.
This is not true. There are lots of places where ssh/vpn is blocked by a firewall while https usually is allowed. So if you want to access/push code while travelling it might be really helpful to have https access to the repo. That was the only reason for me to set up gitlab years ago.
-
maybe the installation is simple, but the whole thing is still a beast and has tons of different services and does a lot of stuff. i prefer forgejo because of it's simplicity (still not super easy) and it takes less resources.
I used it for a while. It eats up half your server just by existing ^^is a good system for the time, but now we have better alternatives.
-
I am looking for recommendations for an open source self-hosted
version control systemsource code hosting service. I found a few, but I can't decide on which one to pick:If there's a better one than the ones I've listed here, I'd love to hear about it!
I care primarily about privacy and security, if that makes any difference.
wrote last edited by [email protected]Those 3 are all fairly similar. Here are some others I can think of:
- Gitlab: many features, complex, pr workflow.
- Forgejo / Gogs: simpler, github inspired interface, pr workflow.
- Radicle: peer to peer, idk much more...
- Sourcehut: minimal (non-github) interface, very modular, email workflow.
- Cgit / Gitweb / etc.: just a git interface, no specific workflow.
Â
If you're not using any of the additional features, cgit should be enough. If you're planning on collaborating with others, probably Forgejo would be better.
You can also use individual components of sourcehut, if you want a git web interface with just issue tracking, ci, or wiki, for example.
-
I am looking for recommendations for an open source self-hosted
version control systemsource code hosting service. I found a few, but I can't decide on which one to pick:If there's a better one than the ones I've listed here, I'd love to hear about it!
I care primarily about privacy and security, if that makes any difference.
I use Forgejo for my private git repos but in all honesty, it's massive overkill for my needs.
-
Those 3 are all fairly similar. Here are some others I can think of:
- Gitlab: many features, complex, pr workflow.
- Forgejo / Gogs: simpler, github inspired interface, pr workflow.
- Radicle: peer to peer, idk much more...
- Sourcehut: minimal (non-github) interface, very modular, email workflow.
- Cgit / Gitweb / etc.: just a git interface, no specific workflow.
Â
If you're not using any of the additional features, cgit should be enough. If you're planning on collaborating with others, probably Forgejo would be better.
You can also use individual components of sourcehut, if you want a git web interface with just issue tracking, ci, or wiki, for example.
A pro of Sourcehut is that EVERYTHING can be done by email. So, if you use their issue tracker and want other people to be able to submit issues, they can do it without making an account.
-
I am looking for recommendations for an open source self-hosted
version control systemsource code hosting service. I found a few, but I can't decide on which one to pick:If there's a better one than the ones I've listed here, I'd love to hear about it!
I care primarily about privacy and security, if that makes any difference.
I use Forgejo mostly for code archiving but anything that requires CI/CD, like personal code projects, i use OneDev. No extra setup for pipeline, batteries included
-
I am looking for recommendations for an open source self-hosted
version control systemsource code hosting service. I found a few, but I can't decide on which one to pick:If there's a better one than the ones I've listed here, I'd love to hear about it!
I care primarily about privacy and security, if that makes any difference.
Forgejo - actively developed open source. It's what powers Codeberg. Easy to set up and manage with Docker. I moved to it from Gogs and skipped Gitea after reading about the forks.
-
I am looking for recommendations for an open source self-hosted
version control systemsource code hosting service. I found a few, but I can't decide on which one to pick:If there's a better one than the ones I've listed here, I'd love to hear about it!
I care primarily about privacy and security, if that makes any difference.
If you are not wed to git, and are willing to try something else, why not give Fossil SCM a try. It's created and maintained by the creator of SQLite. It's a single executable that provides everything for modern source code management, including a website, and even has an official docker file that just works.
Issue tracking, forum support, email, it's all there, in a single executable that can serve as both the front and back end depending on how you launch it. And it's a smaller install than git by itself.
-
It's not just the for-profit corporation, there's also governance issues. Basically, the community elected certain positions and then had the rug pulled out from them such that no elections would be held again.
In the name of the Gitea Community who elected you last year, we welcome the creation of a for-profit company that allows you to make a living out of Gitea.
[...]
We believed you when you promised to pass along the ownership of the Gitea project to your elected successors. This promise is part of an essential bond between you and the strong Community of volunteers, as well as all those who rely upon our collective efforts.
With that in mind, you can understand our surprise when we learned on October 25th, 2022 that both the domains and the trademark were transferred to a for-profit company without our knowledge or approval.
Thanks, I knew there was a bit more to it but hadn't followed it all that closely.
-
You're missing GitLab. I'd be looking at GitLab or Forgejo.
But you might not need this. When you access a private Git repository, you're normally connecting over SSH and authenticating using SSH keys. By default, if you have Git installed on a server you can SSH to and you have a Git repository on that server in a location you can access, you can use that server as a Git remote. You only really want one these services if you want the CI pipelines or collaboration tools.
I feel like you made it sound a bit backwards
There's nothing to install on a "git server", git doesn't have a server component. You can point your git client to a remote place where it can store its files using SSH. But you don't install anything on the server for this.
Which is why self hosting a git remote is super easy. All you need is a server with ssh and a little bit of storage.
If you just want to sync code between different computers and have a backup, that's all you need.
-
I am looking for recommendations for an open source self-hosted
version control systemsource code hosting service. I found a few, but I can't decide on which one to pick:If there's a better one than the ones I've listed here, I'd love to hear about it!
I care primarily about privacy and security, if that makes any difference.
You asked for a service, but listed software. The latest FOSS software option is Forgejo, you should use it instead of others for all the reasons mentioned. However, if you're looking for a service, Codeberg runs a very popular Forgejo instance as a service.
-
I am looking for recommendations for an open source self-hosted
version control systemsource code hosting service. I found a few, but I can't decide on which one to pick:If there's a better one than the ones I've listed here, I'd love to hear about it!
I care primarily about privacy and security, if that makes any difference.
Forgejo all the way
-
Forgejo all the way
Yup, it's pretty easy to set up, and since its runners are basically ripped from GitHub, you can piggy back of that documentation.
-
IMO, the Gogs dev was correct. If you look at that community input and what Gitea became, I was glad to use the version that rejected it.
But I don't know how it compares with Forgejo.
what's the problem with gitea? I never used gogs so I can't compare it
-
what's the problem with gitea? I never used gogs so I can't compare it
The added features made it harder to deploy, came with some bugs, and overall traded a simple design for community-oriented features that IMO were a negative value overall.
-
The added features made it harder to deploy, came with some bugs, and overall traded a simple design for community-oriented features that IMO were a negative value overall.
made it harder to deploy? Isn't it still just a single binary, a config file and a directory for data?
bugs are inevitable for evolving software.
which community oriented features do you mean? are they in the way, or is it just that you don't need them?
-
A pro of Sourcehut is that EVERYTHING can be done by email. So, if you use their issue tracker and want other people to be able to submit issues, they can do it without making an account.
Sourcehut also supports Mercurial, so you also have an option to the herd mentality.
Sourcehut also has zero, or almost zero, JavaScript in the interface, so it doesn't suck
Sourcehut is also componentized, so you can mix and match the pieces you want or need:
- VCS hosting
- masking list management
- issue management
- build server
- man server
Sourcehut is by far the best hosted VCS option at the moment. The Mercurial support alone puts it miles ahead of the others, which are all hobbled by tight coupling to git.
-
I feel like you made it sound a bit backwards
There's nothing to install on a "git server", git doesn't have a server component. You can point your git client to a remote place where it can store its files using SSH. But you don't install anything on the server for this.
Which is why self hosting a git remote is super easy. All you need is a server with ssh and a little bit of storage.
If you just want to sync code between different computers and have a backup, that's all you need.
Git does have a server component. When git connects to an ssh remote it executes an ssh command that needs to be present.