News for hackers. Stuff that matters.
Re:GitHub Issues by koolba on Thursday October 09, 2025 @11:58AM (#45529499)
It’s kind of funny that the top two posts right now are:

    1. Why Self-Host?
    2. GitHub Issues
Re:GitHub Issues by jsheard on Thursday October 09, 2025 @12:16PM (#45529770)
And yesterday we had "GitHub pausing feature development to prioritize moving infra to Azure", immediately followed by them breaking their infra.
Re:GitHub Issues by sam_lowry_ on Thursday October 09, 2025 @12:57PM (#45530263)
Here's the step-by-step guide to self-hosting git repositories:

Change directory to your local git repository that you want to share with friends and colleagues and do a bare clone `git clone --bare . /tmp/repo.git`. You just created a copy of the .git folder without all the checked out files.

Upload /tmp/repo.git to your linux server over ssh. Don't have one? Just order a tiny cloud server from Hetzner. You can place your git repository anywhere, but the best way is to put it in a separate folder, e.g. /var/git. The command would look like `scp -r /tmp/repo.git me@server:/var/git/`.

To share the repository with others, create a group, e.g. `groupadd --users me git` You will be able to add more users to the group with groupmod.

Your git repository is now writable only by me. To make it writable by the git group, you have to change the group on all files in the repository to git with `chgrp -R git /var/repo.git` and enable the group write bit on them with `chmod -R g+w /var/repo.git`.

This fixes the shared access for existing files. For new files, we have to make sure the group write bit is always on by changing UMASK from 022 to 002 in /etc/login.defs.

There is one more trick. For now on, all new files and folders in /var/git will be created with the user's primary group. We could change users to have git as the primary group.

But we can also force all new files and folders to be created with the parent folder's group and not user primary group. For that, set the group sticky bit on all folders in /var/git with `find /var/git -type d -exec chmod g+s \{\} +`

You are done.

Want to host your git repository online? Install caddy and point to /var/git with something like

    example.com {
    root * /var/git
    file_server
    }
Your git repository will be instantly accessible via https://example.com/repo.git.
Re:GitHub Issues by progbits on Thursday October 09, 2025 @12:40PM (#45530052)
I thought they were already on Azure?

At least I'm pretty sure the runners are, our account rep keeps trying to get us to use their GPU runners but they don't have a good GPU model selection and it seems to match what azure offers.

Re:GitHub Issues by cluckindan on Thursday October 09, 2025 @12:36PM (#45530018)
Well, of course the corporation wants to dogfood their platform.

Expecting more and more downtime and random issues in the future.

Re:GitHub Issues by thelastgallon on Thursday October 09, 2025 @12:48PM (#45530163)
Its better for github to self-host.
Re:GitHub Issues by chistev on Thursday October 09, 2025 @12:13PM (#45529729)
What's the joke?
Re:GitHub Issues by dvmazur on Thursday October 09, 2025 @12:16PM (#45529769)
GitHub Pages are affected too
Re:GitHub Issues by logicallee on Thursday October 09, 2025 @12:30PM (#45529940)
Github hosts git repos, so it's an example of when self-hosting git repos on one's own servers could remain operational despite a github outage.
Re:GitHub Issues by esafak on Thursday October 09, 2025 @12:25PM (#45529875)
3. QED
Re:GitHub Issues by paulddraper on Thursday October 09, 2025 @12:31PM (#45529964)
It is funny.

At the same time, self-hosting is great for privacy, cost, or customization. It is not great for uptime.

Re:GitHub Issues by danlugo92 on Thursday October 09, 2025 @12:41PM (#45530074)
I self host a server for a website and I also compile executables in there and it's been running just fine for 2 years and it's not even like a big provider, a very niche one actually (mac servers)
Re:GitHub Issues by paulddraper on Thursday October 09, 2025 @02:50PM (#45531579)
No restarts?
Re:GitHub Issues by kelvinjps10 on Thursday October 09, 2025 @12:43PM (#45530098)
Why Mac servers?
Re:GitHub Issues by guluarte on Thursday October 09, 2025 @01:17PM (#45530508)
are not mac servers more expensive than traditional ones? the only reason i've used them is to compile xcode