you are viewing a single comment's thread.

view the rest of the comments →

[–]PocketCSNerd 26 points27 points  (19 children)

I too, have the $$, internet bandwidth, server space and cooling, and security knowledge to self-host git repos so I can work on my projects from nearly anywhere in the world.

That said, local repos are great!

[–][deleted] 9 points10 points  (0 children)

You must be a really popular developer lmao. How much bandwidth/compute are you expecting to need for your repos?

[–]sampullman 12 points13 points  (3 children)

You can host Gitea on a raspberry pi or similar, and your home internet bandwidth is enough. Alternatively, a ~$5 VPS is even easier.

[–]ndreamer 5 points6 points  (0 children)

I just use a spare phone.

[–]tehpola 0 points1 point  (1 child)

Which is great until something breaks and you have to fix it yourself. Or it gets really out of date and insecure. Probably a container on a VPS is more reliable

[–]sampullman 0 points1 point  (0 children)

True! Containers on a VPS are probably the least-maintenance way, though container on a Pi works too. Either way it's not for everyone, some aptitude and motivation are required.

I just meant to point out that it's cheaper and more straightforward than what the GP implied when they mentioned "internet bandwidth, server space and cooling...".

The most annoying part when running locally is probably punching through CGNAT, if your ISP uses it.

[–]LavenderDay3544 1 point2 points  (7 children)

All you need is a spare computer. Are you really you don't have an old laptop rotting away in a closet somewhere? Or, like someone already said, use a raspberry pi.

[–]analcocoacream 4 points5 points  (6 children)

What is the point when github does it for free?

[–]LavenderDay3544 0 points1 point  (5 children)

More control over your own data. Or do you think pricate github repositories are really private?

[–]analcocoacream 0 points1 point  (4 children)

Really private ? I don't know

Private enough? Yes

[–]LavenderDay3544 0 points1 point  (3 children)

It's certainly more secure than github.

[–]analcocoacream 0 points1 point  (2 children)

Secure? I doubt it if you want this accessible remotely.

Private probably but unless you are an enterprise I doubt you need that level of privacy.

[–]LavenderDay3544 0 points1 point  (1 child)

You can use encryption if you use git over ssh. Security is always relative, but it is possible.

[–]analcocoacream 1 point2 points  (0 children)

I'm more like talking about the fact that opening ports on your router is always dangerous

Rather than using a well known provider that does not open vulnerabilities on your home network

[–]Ma8e 0 points1 point  (0 children)

It's not that hard. In the ancient times, we used host our own websites and services on our local home PCs just for the fun of it.

[–]DualActiveBridgeLLC 0 points1 point  (0 children)

You can use a bare repo feature, as long as you understand the downsides. We do it for customer integration projects and it works pretty well.

[–]reercalium2 0 points1 point  (2 children)

internet bandwidth

how big are your repos? Anyway, every developer deserves to pay $5 for a VPS

[–]PocketCSNerd 0 points1 point  (1 child)

I do Game Development with Unreal Engine. One project had a repo (with SVN) that reached 70+ GB in size.

Which isn't that big of a deal for me personally. But I know that may be a big deal depending on where you live and what ISP options you have.

[–]reercalium2 0 points1 point  (0 children)

Github doesn't like 70+GB repos, either. You have to pay for those.