Home

Considering self hosting my own git repositories. What are some options?

$$10701
https://lemmy.world/u/idunnololz posted on Mar 11, 2026 22:31

As the title states, I am looking to host maybe ~100 git repositories locally on my home network.

I’m not planning on doing anything too crazy with my repositories. The solution doesn’t need to support like 1000s of contributors however it should support the most basic features such as being able to see individual commits, branches, diffs, maybe some PR related mechanism, a web GUI, etc.

I don’t like to tinker too much. The solution should work and be stable. Stability is a hard requirement. I want to write code and not have to worry about losing it. Yes I will make backups.

Please let me know what some of the best options are at the moment. Thank you!

https://lemmy.world/post/44134491
Reply
$$10703
https://lemmy.zip/u/First_Thunder posted on Mar 11, 2026 22:35
In reply to: https://lemmy.world/post/44134491

I personally don’t host yet anything, but do know of a friend with a functional Gitea at home

https://lemmy.zip/comment/25191800
Reply
$$10702
https://infosec.pub/u/ryokimball posted on Mar 11, 2026 22:35
In reply to: https://lemmy.world/post/44134491

Self-hosting gitlab?

https://infosec.pub/comment/20806363
Reply
$$10706
https://lemmy.wtf/u/DFX4509B posted on Mar 11, 2026 22:37
In reply to: https://lemmy.world/post/44134491

Just host a bare git repo.

https://lemmy.wtf/comment/20420089
Reply
$$10708
https://lemmy.dbzer0.com/u/xombie21 posted on Mar 11, 2026 22:38
In reply to: https://lemmy.world/post/44134491

Gitea is the answer, configure/install with docker. I have had mine going for a few years now and haven’t had to touch it besides updating the docker container which I automated.

https://lemmy.dbzer0.com/comment/24900578
Reply
$$10712
https://retrolemmy.com/u/whelk posted on Mar 11, 2026 22:50
In reply to: https://lemmy.world/post/44134491

I finally decided to make the move off github a couple weeks ago and ended up self hosting with Forgejo. It was really easy to set up, and my buddies and I are loving it. Provides a robust web interface and handles pull requests with automatic merges and all that. I haven’t had any issues thus far

https://retrolemmy.com/comment/18371492
Reply
$$10713
https://lemmy.world/u/SpaceNoodle posted on Mar 11, 2026 22:51
In reply to: https://lemmy.dbzer0.com/comment/24900578

Same, but fuck the docker overhead

https://lemmy.world/comment/22610648
Reply
$$10714
https://feddit.nu/u/lime posted on Mar 11, 2026 22:51
In reply to: https://lemmy.world/post/44134491

if it wasn’t for the webui, a bare git repo would suffice. any repo can be a remote. it’s distributed, after all.

https://feddit.nu/comment/19054064
Reply
$$10715
https://sh.itjust.works/u/chtk posted on Mar 11, 2026 22:52
In reply to: https://lemmy.world/post/44134491

If you’re looking for a bare bones solution, and you already have a machine that you can SSH into, you could just use that. There are desktop GUI/TUI apps galore that you can use to inspect commits, branches and such.

At work I’m in the process of planning a move from Subversion to Git. So I’ve been looking at Forgejo, a hard fork of Gitea maintained by Codeberg. It has all the important features of other forges like GitLab and Gitea. But is completely open source.

https://sh.itjust.works/comment/24237604
Reply
$$10716
https://feddit.nu/u/lime posted on Mar 11, 2026 22:52
In reply to: https://lemmy.dbzer0.com/comment/24900578

why gitea instead of forgejo?

https://feddit.nu/comment/19054068
Reply
$$10717
https://europe.pub/u/aegg posted on Mar 11, 2026 22:56
In reply to: https://lemmy.world/post/44134491

I’ve used Gitea before, Frogejo also looks pretty good

https://europe.pub/comment/6431956
Reply
$$10718
https://piefed.social/u/mesamunefire posted on Mar 11, 2026 22:56
In reply to: https://lemmy.world/post/44134491

If all of the below doesnt work out, you can host git by itself. I did that at an office once.

https://gist.github.com/Kreijstal/28fc987270b71849505bbc89b3f2d90a steps look correct.

But for me forgejo worked out well for my side projects and mirroring.

https://piefed.social/comment/10491967
Reply
$$10719
https://sh.itjust.works/u/litchralee posted on Mar 11, 2026 22:57
In reply to: https://lemmy.world/post/44134491

I second the option of Git + SSH. That will scale to one hundred repos. And if you don’t want the repos to be checked out, use “git clone -n” to not do that. It’ll just be dozens of repos which only have the minimal .git/ directory. All other repos that specify this one as the upstream will have no issues pulling or pushing code.

You won’t have PR features nor a web UI though.

https://sh.itjust.works/comment/24237689
Reply
$$10722
https://lemmy.world/u/idunnololz posted on Mar 11, 2026 23:02
In reply to: https://lemmy.wtf/comment/20420089

I’d prefer it to have a website just in case I want to take a quick look at something when I’m not home.

https://lemmy.world/comment/22610826
Reply
$$10721
https://lemmy.world/u/theunknownmuncher posted on Mar 11, 2026 23:03
In reply to: https://lemmy.world/post/44134491

Forgejo is the way

https://lemmy.world/comment/22610828
Reply
$$10728
https://lemmy.zip/u/frongt posted on Mar 11, 2026 23:16
In reply to: https://lemmy.world/comment/22610826

Over a VPN, right? I always recommend not exposing services to the Internet if you can avoid it.

https://lemmy.zip/comment/25192662
Reply
$$10730
https://lemmy.decronym.xyz/u/Decronym posted on Mar 11, 2026 23:20
In reply to: https://lemmy.world/post/44134491

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

Fewer Letters More Letters
Git Popular version control system, primarily for code
SSH Secure Shell for remote terminal access
VPN Virtual Private Network

[Thread #157 for this comm, first seen 11th Mar 2026, 23:20] [FAQ] [Full list] [Contact] [Source code]

https://lemmy.decronym.xyz/comment/17355
Reply
$$10732
https://lemmy.world/u/thirdBreakfast posted on Mar 11, 2026 23:31
In reply to: https://lemmy.world/post/44134491

Forgejo + Tailscale. Forgejo is the app behind Codeberg so it’s battle tested. I switched to it from Gitea after the controversy.

https://lemmy.world/comment/22611298
Reply
$$10737
https://lemmy.ml/u/slowtrain33 posted on Mar 11, 2026 23:34
In reply to: https://lemmy.world/post/44134491

I’ve set up a few gitlab servers at companies and it’s always been well received. Doing it from scratch may be more complex than you want, but I think there are docker images for a more turnkey type solution. And the option of building CI/CD pipelines in the future is always nice to have.

https://lemmy.ml/comment/24480536
Reply
$$10748
https://lemmy.world/u/SpaceNoodle posted on Mar 11, 2026 23:53
In reply to: https://feddit.nu/comment/19054068

Why forgejo I stead of gitea?

https://lemmy.world/comment/22611657
Reply
$$10754
https://lemmy.ca/u/corsicanguppy posted on Mar 12, 2026 00:23
In reply to: https://lemmy.world/post/44134491

It’s monstrous, but gitlab installs from one big RPM on a base box; and with one config file you’re up.

https://lemmy.ca/comment/22161302
Reply
$$10759
https://discuss.tchncs.de/u/Creat posted on Mar 12, 2026 00:37
In reply to: https://lemmy.world/comment/22611657

Forgejo was soft forked from Gitea after the went commercial and changed the license (I think). If they aren’t yet, expect pay walled features eventually.

Forgejo turned into a hard fork after communication issues, I haven’t looked too deeply into it (as I don’t really care about the fact that it’s a hard fork now). This means while it used to be a drop-in replacement showing you to go back and forth between the two, it’s now an active conversion i think.

https://discuss.tchncs.de/comment/24469950
Reply
$$10761
https://lemmy.world/u/idunnololz posted on Mar 12, 2026 00:40
In reply to: https://lemmy.zip/comment/25192662

Yes.

https://lemmy.world/comment/22612299
Reply
$$10762
https://lemmy.world/u/SpaceNoodle posted on Mar 12, 2026 00:42
In reply to: https://discuss.tchncs.de/comment/24469950

Thanks for answering my question instead of downvoting like half the other chuckleheads. Guess I’ll migrate to Forgejo if my Gitea instance ever gets too old.

https://lemmy.world/comment/22612326
Reply
$$10764
https://quokk.au/u/fizzle posted on Mar 12, 2026 00:51
In reply to: https://feddit.nu/comment/19054064

I would like to use bare repos because I don’t share with anyone else and don’t really need the web-ui for issues or wikis or anything.

However, I need git-lfs and if I understand correctly, that doesn’t wont work with a bare repo over ssh.

I was using gitea a while back and they had a way to dump repos and db, but there didn’t seem to be a way to restore. That being the case I switched to gogs which has been great. It was only recently I learned that gogs wasn’t very active and there was some kind of security breach. Mine is only accessible on my LAN so not particularly worried about security.

Anyhow, looking at forgejo now it seems like there still isn’t a great way to restore from backup? I guess that might not matter to me if I’m only interested in the repos and no comments or other stuff that might be in the database.

https://quokk.au/comment/3653987
Reply
$$10769
https://lemmy.today/u/tal posted on Mar 12, 2026 00:59
In reply to: https://lemmy.world/post/44134491

Relevant:

https://en.wikipedia.org/wiki/Forge_(software)

https://lemmy.today/comment/22824546
Reply
$$10771
https://quokk.au/u/fizzle posted on Mar 12, 2026 01:04
In reply to: https://lemmy.world/post/44134491

Forgejo seemed to be the winning answer so I tried setting it up. Total setup time was less than 10 minutes.

Just a heads up… I haven’t looked at this since forever ago (when foregjo was gitea), but make sure you have a restore plan. I think there’s a dump command but no restore.

https://quokk.au/comment/3654122
Reply
$$10773
https://ppb.social/users/ppb1701 posted on Mar 12, 2026 01:11
In reply to: https://lemmy.world/post/44134491

@idunnololz I'm running gitea and tailscale. Sadly I had not heard of Forgejo at the time or I might have went with it instead. (Might switch over if i get bored or an itch one afternoon). Works great for me though.

https://ppb.social/users/ppb1701/statuses/116213540611995397
Reply
$$10783
https://piefed.ca/u/cecilkorik posted on Mar 12, 2026 02:00
In reply to: https://lemmy.world/post/44134491

I love Forgejo, I’m glad you are happy with it too. Their upgrade process is pretty minimal/straightforward (at least it has been so far) and their runner configuration is a bit heavy to set up initially (I maybe took the security recommendations a bit too intensively despite the fact that I’m running a completely private site, but allowing systems that run arbitrary commands automatically is legitimately a bit intimidating) but has been really nice and reliable now that it’s working.

https://piefed.ca/comment/3812156
Reply
$$10785
https://lemmy.today/u/msokiovt posted on Mar 12, 2026 02:06
In reply to: https://lemmy.world/post/44134491

I’d go for Forjego or Gitea.

https://lemmy.today/comment/22825547
Reply
$$10789
https://lemmy.world/u/Serinus posted on Mar 12, 2026 02:26
In reply to: https://feddit.nu/comment/19054064

But ci/cd though

https://lemmy.world/comment/22613544
Reply
$$10795
https://programming.dev/u/moonpiedumplings posted on Mar 12, 2026 02:47
In reply to: https://lemmy.world/comment/22612326

You should probably migrate now, forgejo is currently a soft fork that is fully compatible, but in the future they are planning to hard fork and not be compatible. Well, they are in the process of doing so right now.

https://programming.dev/comment/22670038
Reply
$$10797
https://lemmy.world/u/SpaceNoodle posted on Mar 12, 2026 03:00
In reply to: https://programming.dev/comment/22670038

Good to know, I’ll look into it this weekend.

https://lemmy.world/comment/22613888
Reply
$$10805
https://lemmy.world/u/RIotingPacifist posted on Mar 12, 2026 04:27
In reply to: https://lemmy.world/comment/22610648

Didn’t use docker then fairly sure there is a Deb for it.

https://lemmy.world/comment/22614683
Reply
$$10813
https://feddit.nu/u/lime posted on Mar 12, 2026 06:22
In reply to: https://lemmy.world/comment/22613544

just use a make file like a civilised human being

https://feddit.nu/comment/19058718
Reply
$$10814
https://piefed.social/u/Ek-Hou-Van-Braai posted on Mar 12, 2026 06:35
In reply to: https://infosec.pub/comment/20806363

Surely this is the correct answer.

GitLab is awesome and has good CI-CD

https://piefed.social/comment/10495874
Reply
$$10851
https://discuss.tchncs.de/u/PotatoesFall posted on Mar 12, 2026 09:05
In reply to: https://lemmy.world/comment/22613544

forgejo supports woodpecker CI I thought?

https://discuss.tchncs.de/comment/24475655
Reply
$$10860
https://lemmy.zip/u/kill_dash_nine posted on Mar 12, 2026 10:24
In reply to: https://lemmy.world/comment/22610648

Just curious - what do you mean by the docker overhead?

https://lemmy.zip/comment/25200881
Reply
$$10871
https://lemmy.ml/u/DaPorkchop_ posted on Mar 12, 2026 10:46
In reply to: https://lemmy.world/comment/22613544

Jenkins has fairly solid Gitea/Forgejo integration :)

https://lemmy.ml/comment/24488175
Reply
$$10891
https://piefed.social/u/eodur posted on Mar 12, 2026 12:00
In reply to: https://discuss.tchncs.de/comment/24475655

Why not forgejo’s built in ci/cd? Its worked great for me so far?

https://piefed.social/comment/10498451
Reply
$$10930
https://lemmy.world/u/SpaceNoodle posted on Mar 12, 2026 14:53
In reply to: https://lemmy.zip/comment/25200881

CPU, RAM, disk space, network translation, management abstraction, buried logs …

https://lemmy.world/comment/22621937
Reply
$$10934
https://lemmy.world/u/foggy posted on Mar 12, 2026 15:19
In reply to: https://lemmy.ca/comment/22161302

While I agree, out of the box the configs ARE NOT for home lab use.

https://lemmy.world/comment/22622397
Reply
$$10938
https://infosec.pub/u/ryokimball posted on Mar 12, 2026 15:39
In reply to: https://piefed.social/comment/10495874

Idk, I had not heard of gitea or forgejo before. Personally I really want strong & flexible CI/CD, and Don’t know what the alternatives have to offer there, but it would be worth looking into. GitLab is pretty resource-heavy even for low user count.

https://infosec.pub/comment/20817651
Reply
$$11103
https://lemmy.dbzer0.com/u/xombie21 posted on Mar 13, 2026 01:07
In reply to: https://feddit.nu/comment/19054068

Forgejo didn’t exist when I installed gitea.

https://lemmy.dbzer0.com/comment/24923623
Reply
$$11164
https://discuss.tchncs.de/u/PotatoesFall posted on Mar 13, 2026 08:08
In reply to: https://piefed.social/comment/10498451

I didn’t even know that’s a thing! Looks like it’s somewhat new. What a time to be alive!

https://discuss.tchncs.de/comment/24498482
Reply
$$12601
https://lemmy.ca/u/corsicanguppy posted on Mar 15, 2026 20:47
In reply to: https://lemmy.world/comment/22622397

For sure. And their bumbling has made it harder to deactivate all the useless bloat and get the good web-editor back. And a host of other mind-numbingly short-sighted decisions that show they’re fully run by LostBoy coders who were never mentored and just don’t know better.

But tuning can come after. And their CI is way fucking better than forgejo’s facepalm of a GitHub clone. And that’s a thin reason, but, yeah.

https://lemmy.ca/comment/22229781
Reply
$$12614
https://lemmy.world/u/foggy posted on Mar 15, 2026 21:03
In reply to: https://lemmy.ca/comment/22229781

Yep.

It’s like they wanna get bought to compete with GitHub or something.

They’re moving fast and breaking things. And bloating their product in the process. In the last 24 months they paid over $1M to a single bug bounty hunter who basically took them to the cleaners.

But totally agree. It’s the best UX, best product for home lab or even small enterprise use if you’ve got someone to get it tuned appropriately.

https://lemmy.world/comment/22681300
Reply