News for hackers. Stuff that matters.
Re:Ask HN: Alternatives to GitHub by rhdunn on Monday August 17, 2026 @12:48PM (#49333996)
It depends on what you are after?

1. Do you want something that works and feels like GitHub? -- Forgejo and Gitea are good for this.

2. Do you want a place to host git repositories with minimal hassle? -- GitLab, CodeBerg, and others are available.

3. Do you have your own hosting infrastructure? You could use gitolite and CGit/GitWeb on that hosting platform or local hardware.

4. Do you just want to host repositories? -- Gitolite can be used to help with SSH/auth/repository creation, and CGit or GitWeb for the frontend.

5. Do you need something like GitHub Actions? -- GitLab, Forgejo, and Gitea offer CI, or use external CI infrastructure.

6. Do you need issue tracking and management? -- GitLab, Forgejo, and Gitea provide these. There are alternatives from Jira to Kanban (including Trello) to Markdown (Obsidian and others) and more.

Re:Ask HN: Alternatives to GitHub by mejutoco on Monday August 17, 2026 @01:51PM (#49334941)
> 4. Do you just want to host repositories?

an ssh connection and

    git --bare init
on your ssh accessible server works just fine
Re:Ask HN: Alternatives to GitHub by janalsncm on Monday August 17, 2026 @04:06PM (#49336814)
“Just” is a four letter word and a trap our industry repeatedly falls into.

https://sgringwe.com/2019/10/10/Please-just-stop-saying-just

Re:Ask HN: Alternatives to GitHub by hamburglar on Monday August 17, 2026 @04:57PM (#49337533)
If all you want to do is host repositories, “just” is the appropriate word here. For lone wolf work, all I care about is having a remote that mirrors all the changes and branches I create locally. It’s just redundancy. A git bare repo and SSH are all that’s needed.

I don’t do pull requests to myself, and I don’t need a bug tracker or CI.

Re:Ask HN: Alternatives to GitHub by nine_k on Monday August 17, 2026 @06:00PM (#49338276)
But sometimes it's applied properly! https://github.com/casey/just
Re:Ask HN: Alternatives to GitHub by zombot on Tuesday August 18, 2026 @08:16AM (#49344591)
Is that a just cause?
Re:Ask HN: Alternatives to GitHub by chrysoprace on Monday August 17, 2026 @07:10PM (#49338955)
I hadn't read this article until now, but I started catching myself using the word at work a few years ago and I've actively been trying to avoid using it for the reasons laid out in this post.
Re:Ask HN: Alternatives to GitHub by gosub100 on Tuesday August 18, 2026 @09:08AM (#49345092)
I didn't check if this was mentioned in the article but I've heard it described as a "lullaby word". I think that is very apt, and I have stopped using it whenever I can.
Re:Ask HN: Alternatives to GitHub by sincerely on Monday August 17, 2026 @08:50PM (#49339750)
edit: totally wrong
Re:Ask HN: Alternatives to GitHub by ysavir on Monday August 17, 2026 @08:56PM (#49339800)
I think they mean the "just" in "Do you just want to host repositories?", implying that it's never "just" hosting repositories, and the needs will continue to grow beyond what the simple solution offers.
Re:Ask HN: Alternatives to GitHub by fooqux on Monday August 17, 2026 @09:30PM (#49340025)
> the needs will continue to grow beyond what the simple solution offers.

If they do, then migrate to a provider that offers what you need at that time. It's not like adding a new remote is hard.

Re:Ask HN: Alternatives to GitHub by sincerely on Monday August 17, 2026 @09:16PM (#49339925)
I must be illiterate. Ofc. Sorry
Re:Ask HN: Alternatives to GitHub by doctorpangloss on Tuesday August 18, 2026 @12:04AM (#49341115)
i used to feel the same way, but with coding agents, the Justers are surely having the last laugh
Re:Ask HN: Alternatives to GitHub by edgyquant on Monday August 17, 2026 @03:26PM (#49336317)
It is much more complex than this to get basic GitHub functionality anyone who has tried can tell you that. It feels like it should be a simple command but it absolutely isn’t
Re:Ask HN: Alternatives to GitHub by mejutoco on Tuesday August 18, 2026 @01:41AM (#49341695)
> 4. Do you just want to host repositories?
Re:Ask HN: Alternatives to GitHub by edgyquant on Tuesday August 18, 2026 @10:27AM (#49346118)
Yes it is not so straight forward to be able to push/pull from a repository over ssh especially with multiple users etc there are a bunch of additional configs required for this
Re:Ask HN: Alternatives to GitHub by stephenway on Tuesday August 18, 2026 @12:27PM (#49348146)
once you add multiple users, bare git stops feeling "just" pretty fast. do you need reviews/CI too, or only shared access?
Re:Ask HN: Alternatives to GitHub by rhdunn on Monday August 17, 2026 @01:57PM (#49335039)
That's what gitolite does with some helper scripts for creating/setting up the repositories, adding metadata to the configs, etc. That way your `git` user can be set to reject ssh login attempts. The projects are managed by pushing a config to a gitolite admin repository.
Re:Ask HN: Alternatives to GitHub by samlinnfer on Monday August 17, 2026 @02:21PM (#49335380)
Cool thing about gitolite is that you manage it using text files and committing to the gitolite admin git repository.

We were using it until we grew tired of not having a web view to comment and review patches so we switched to gitea.

Re:Ask HN: Alternatives to GitHub by jonahx on Monday August 17, 2026 @02:11PM (#49335236)
Quick intro for this method: https://www.youtube.com/watch?v=iuIdBfjL62s
Re:Ask HN: Alternatives to GitHub by myaccountonhn on Monday August 17, 2026 @02:18PM (#49335328)
It can be as brief as:

ssh server git --bare init myrepo.git

git clone server:myrepo.git

Re:Ask HN: Alternatives to GitHub by eddieroger on Monday August 17, 2026 @02:22PM (#49335397)
You can even support Actions with this method if you're not afraid of a little scripting. https://git-scm.com/book/ms/v2/Customizing-Git-Git-Hooks
Re:Ask HN: Alternatives to GitHub by sunshine-o on Monday August 17, 2026 @06:29PM (#49338556)
Beautiful !
Re:Ask HN: Alternatives to GitHub by jolmg on Monday August 17, 2026 @07:02PM (#49338885)
> git clone server:myrepo.git

or if your local repo existed first:

  git remote add server server:myrepo.git
  git push -u server @
Re:Ask HN: Alternatives to GitHub by bsoles on Tuesday August 18, 2026 @06:48PM (#49353905)
At least in small scale, having your own git server is trivially easy. Why are organizations so eager to put a third-party layer on top of that?
Re:Ask HN: Alternatives to GitHub by Bnjoroge on Monday August 17, 2026 @01:41PM (#49334789)
Hopefully a good spot to plug my own project, preloop, which is a drop-in replacement of Github actions(both the runners and control plane) that runs locally or self-hosted in isoalted microvms, and supports debug-on-failure. You can also push to the server, run CI and then optionally create a draft PR. Not quite production-ready yet(for the self-hosted part), but the local part works well. We implement the official runner protocol 100% unlike act/gitea/forgejo, so your workflows are more likely to work out of the box with preloop(forgejo has the closest compatibility with Github Actions though so it's a good off-Github option) and we use microvms so no DinD issues. I'm working on getting the official runner vm image up to reduce any environment incompatibilities. Feel free to try it out: https://github.com/preloopdev/preloop
Re:Ask HN: Alternatives to GitHub by srcreigh on Monday August 17, 2026 @02:51PM (#49335819)
Yeah. MicroVMs make hosting runners pretty straightforward. I had codex make a forgejo runner controller which pulls forgejo actions and creates kubernetes jobs for them.

It was a bit of a pain to configure firecracker with k3s.

It really can’t be understated how much easier hosting CI is with microvms as the security boundary.

Re:Ask HN: Alternatives to GitHub by Bnjoroge on Monday August 17, 2026 @04:32PM (#49337225)
Agree. I'm always surprised Github still uses huge fat VMs. I imagine this is one of the things that make it much painful at scale. The tricky part with microvms are getting them to run cross-platform. We use an awesome project called smolvm that builds on libkrun and makes this alot easier. As an aside, how have forgejo actions worked for you in practice?
Re:Ask HN: Alternatives to GitHub by Melatonic on Tuesday August 18, 2026 @03:14AM (#49342421)
Any other recommendations for microvm ? Need to mess around with them again. Always seemed like the future
Re:Ask HN: Alternatives to GitHub by Bnjoroge on Tuesday August 18, 2026 @10:29AM (#49346137)
If you want something cross-platform, smolvm or microsandbox are great options(built on top of libkrun vmm)! If you are looking for linux-only, the typical choices are firecracker-based solutions.
Re:Ask HN: Alternatives to GitHub by srcreigh on Tuesday August 18, 2026 @03:52PM (#49351676)
Re Forgejo actions, I'm just toying around.

Their v15 release (apr 16) really enabled k8s native runners. They added an ephemeral runner API and a bunch of APIs to get jobs. That's what im using to do k8s autoscaling

Re:Ask HN: Alternatives to GitHub by selfhoster1312 on Tuesday August 18, 2026 @05:15AM (#49343246)
I'm a little disappointed, because your comment made it look great, but when i look at >1000 commits in 2 months and inspect a few commits randomly, it looks like 100% slopware.

The concept is marvelous, but i'm 100% not trusting slop near my infra, and i'm 100% not trusting people who are not upfront about vibecoding in their README and raise my hopes for nothing.

I suspect most sysadmins, like me, will not trust LLM-generated code within a 10-foot-pole-reach of their servers. You still might be able to convince clueless managers suffering from AI psychosis to go for your solution. But if you'd like to make actual software engineering with a human team, i'm 100% convinced there's actual desire and market for a solution like this to easily get ease the transition path out of Github.

Re:Ask HN: Alternatives to GitHub by Bnjoroge on Tuesday August 18, 2026 @10:50AM (#49346466)
Much of the code was certainly written by agents, as is most of the code now. That said, there's a big difference between "vibe coding" and "agentic coding". The latter requires careful and thoughtful design and review. I've invested heavily in different kinds of guardrails to ensure conformance. An effort like this would not be reasonably feasible without agents or would take significantly longer(act has been around for 5+ years and is still maybe about 70% or so compatible with the official protocol). We'll keep improving it. I hope we'll earn your trust eventually.
Re:Ask HN: Alternatives to GitHub by weiran on Saturday August 22, 2026 @10:01AM (#49399836)
The self hosting community is incredibly anti-AI for some reason. I’ve never understood why as using agents has made managing and maintaining my home lab system so much easier.
Re:Ask HN: Alternatives to GitHub by gm on Tuesday August 18, 2026 @02:59PM (#49350857)
Nah, LLMs and agentic coding is a reality. It's here, it will stay here, and will only grow.
Re:Ask HN: Alternatives to GitHub by ljm on Monday August 17, 2026 @01:41PM (#49334784)
I'm quite partial to SourceHut as well but tbh I don't care about contributors and I like it because it is deliberately low-tech.

Maybe the CI could be a bit better (secrets management will sting you if you don't read the docs first), but that is also pretty no-nonsense and gets the job done.

If you like no-frills and an expectation that you know what you're doing, it's pretty sweet.

Would probably scare off most collaborators though but that, IMO, is part of the appeal. If you want to contribute then it's more likely you're invested and not driving by.

Also I like that it has a concept of projects so you can group repos together (which on GH would normally require creating an organisation account). And a repo can be public but unlisted, so it's open but not drawing attention.

Re:Ask HN: Alternatives to GitHub by yw3410 on Monday August 17, 2026 @05:06PM (#49337641)
Sourcehut is fantastic because you can also SSH into the CI machine.
Re:Ask HN: Alternatives to GitHub by als0 on Monday August 17, 2026 @01:24PM (#49334530)
7. Do you want the most contributions?

I hate to admit it, but GitHub has a massive community. I’ve personally seen a project leave it and then contributions dropped significantly.

Re:Ask HN: Alternatives to GitHub by shimman on Monday August 17, 2026 @02:16PM (#49335312)
Having people personally go out of the way for a little bit of friction tells you how valuable, and perhaps, serious these people are. I'd rather have that group of people contributing to my projects than fly by night agents that just shit all over the floor and expect treats for doing so.
Re:Ask HN: Alternatives to GitHub by ygjb on Monday August 17, 2026 @02:36PM (#49335636)
Contributions aren't just commits/prs. It's also opening issues. The harder it is to provide feedback, the more likely users are going to seek a different library or tool, and depending on the actual objective of releasing or publishing code, that is not ideal.

I do agree on the fly by night agents, especially since so much is actually just agents acting on behalf of folks who just spam whatever permissions are requested in Claude/Codex.

Re:Ask HN: Alternatives to GitHub by shimman on Monday August 17, 2026 @02:47PM (#49335769)
Don't think open submission feedback is worth much anymore, at least not the amount of effort it requires to curate it. Having friction still seems like a great way to get decent feedback nowadays rather than needing to manually curate 100s of issues where 98% of them are spam/garbage.
Re:Ask HN: Alternatives to GitHub by rhdunn on Monday August 17, 2026 @04:49PM (#49337442)
That's fine if the projects are in a single place (e.g. GitHub) as you only need to create one account.

If every project requires its own username/password just to report a bug, I may do that for the first 2 or 3, but not for every project. I'm also unlikely to create accounts on hosting platforms I don't intend on using outside of reporting the single bug.

Re:Ask HN: Alternatives to GitHub by shimman on Monday August 17, 2026 @08:27PM (#49339591)
That's fine, maybe they don't want casual users like you to be part of their community. There is a reason to prefer group coherence over availability. Availability doesn't actually help the group for most online communities, it's actively a hinderance.
Re:Ask HN: Alternatives to GitHub by lawn on Monday August 17, 2026 @03:09PM (#49336097)
It's also a useful signal in the age of LLMs. A bit of hoops to jump through before a PR can now be seen as a good thing.
Re:Ask HN: Alternatives to GitHub by colesantiago on Monday August 17, 2026 @01:42PM (#49334799)
You don't really need GitHub's 'community'

It is mostly all AI agents, bots and spam anyway, not to mention most projects are now vibecoded slop on there.

You're better off going to a different forge or hosting one yourself.

Codeberg has a no LLMs policy which is very attractive for many.

Re:Ask HN: Alternatives to GitHub by 0xc133 on Monday August 17, 2026 @01:11PM (#49334353)
*Forgejo
Re:Ask HN: Alternatives to GitHub by rhdunn on Monday August 17, 2026 @01:25PM (#49334559)
Indeed. I've edited my post to fix the typo.
Re:Ask HN: Alternatives to GitHub by dumidusw on Monday August 17, 2026 @07:26PM (#49339076)
It's great for lightweight self hosting
Re:Ask HN: Alternatives to GitHub by tonymet on Monday August 17, 2026 @01:19PM (#49334461)
and you can stream your commits into any of these to improve deployment and commit availability when github is down.
Re:Ask HN: Alternatives to GitHub by osxman on Monday August 17, 2026 @01:17PM (#49334435)
Forgejo == Codeberg
Re:Ask HN: Alternatives to GitHub by rsyring on Monday August 17, 2026 @01:27PM (#49334593)
Not exactly:

> Forgejo is self-hostable free software for software development, built on top of Git. Codeberg is powered by Forgejo, which is in turn a hard-fork of Gitea. Compared to Codeberg, Forgejo is not one service, but free software to help you build your own. Everyone can install their own Forgejo instance to host their own projects. There are also public Forgejo instances as well as Codeberg you can use, but make sure you find a site that is actively maintained and updated, and that you trust the provider.

https://docs.codeberg.org/getting-started/what-is-codeberg/#...

Re:Ask HN: Alternatives to GitHub by tonymet on Monday August 17, 2026 @01:20PM (#49334469)
isn't forgejo the software and codeberg is hosted forgejo?
Re:Ask HN: Alternatives to GitHub by Cupprum on Monday August 17, 2026 @01:29PM (#49334603)
Re:Ask HN: Alternatives to GitHub by tonymet on Monday August 17, 2026 @01:50PM (#49334922)
TLDR
Re:Ask HN: Alternatives to GitHub by zahrc on Monday August 17, 2026 @02:03PM (#49335124)
Literally the first paragraph:

> Forgejo is self-hostable free software for software development, built on top of Git. Codeberg is powered by Forgejo, which is in turn a hard-fork of Gitea. Compared to Codeberg, Forgejo is not one service, but free software to help you build your own. Everyone can install their own Forgejo instance to host their own projects. There are also public Forgejo instances as well as Codeberg you can use, but make sure you find a site that is actively maintained and updated, and that you trust the provider.

Re:Ask HN: Alternatives to GitHub by tonymet on Monday August 17, 2026 @02:04PM (#49335137)
So…what I said.
Re:Ask HN: Alternatives to GitHub by dspillett on Monday August 17, 2026 @06:33PM (#49338588)
If that is too long, you have an attention span problem. That is your issue to deal with, not ours.

Or from another angle, how would you say it more concisely? Preferably without using AI to summarise.

Re:Ask HN: Alternatives to GitHub by kristofferR on Monday August 17, 2026 @08:41PM (#49339696)
If anything it seems like you are the one with an attention span problem when you can't remember that he posted the correct consise definition earlier in this thread. Being a dick when justified is counter-productive, but being a dick while also being the one who is confused is a way worse look.
Re:Ask HN: Alternatives to GitHub by dspillett on Tuesday August 18, 2026 @05:03AM (#49343172)
> he posted the correct consise definition earlier in this thread

As a question, not a statement of knowledge, when if they'd read that “too long” paragraph they could have stated the point confidently.

And while that description, if stated as such, is more concise, it leaves out notable details (its relationshipt to Gitea, which many may recognise, and that it isn't the full feature set of the service) so is probably too concise.

Re:Ask HN: Alternatives to GitHub by tonymet on Tuesday August 18, 2026 @04:30PM (#49352239)
i phrased as a question as a courtesy.
Re:Ask HN: Alternatives to GitHub by tonymet on Tuesday August 18, 2026 @03:19PM (#49351156)
thank you , you're one of the folks who make it worth visiting here.
Re:Ask HN: Alternatives to GitHub by godwinson__4-8 on Monday August 17, 2026 @03:04PM (#49336029)
CodeBerg comes with the advantage that Euro social democrat style moral superiority comes for free. Never mind it has worse performance under less load and its bet for dealing with the future is treating anything LLM related as hostile.

https://blog.codeberg.org/protecting-our-floss-commons-from-...

You may agree with this. And if so, you have found your home. For those who just want to host, and not buy into this particular perspective, you should probably look elsewhere. I find a lot of people in the States promoting CodeBerg also have illusions about Europe, of the sort that are likely to be radically tested in the next decade, if not the next few election cycles alone.

Re:Ask HN: Alternatives to GitHub by elehack on Monday August 17, 2026 @04:24PM (#49337091)
If you want (4) and don't care about a web interface for managing repos, but do want Git-LFS, Soft Serve (https://github.com/charmbracelet/soft-serve/) works pretty well. I used it for self-hosted stuff until I started needing other features Forgejo offers.
Re:Ask HN: Alternatives to GitHub by delf on Monday August 17, 2026 @04:31PM (#49337210)
Or just push to an S3 bucket with `gitsocial mirror <s3>`
Re:Ask HN: Alternatives to GitHub by jolaflow on Monday August 17, 2026 @04:49PM (#49337424)
For issue tracking you may also be interested in Epiq. It is git-native, vendor agnostic, and distributed. Comes with a command line TUI, a browser GUI, mcp, and more. Also event sourced state with replay, which is super powerful for auditing workflows.
Re:Ask HN: Alternatives to GitHub by Melatonic on Tuesday August 18, 2026 @03:12AM (#49342403)
7. Do you want to impress the old Solaris admin that still wants to live like it's 1997? Use SVN hosted on an ancient Thinkpad with everything hosted on an ancient spinning disk external hooked to eSATA