Top
Best
New

Posted by ColinWright 7 days ago

Some thoughts on personal Git hosting(shkspr.mobi)
102 points | 93 commentspage 2
calvinmorrison 4 days ago|
Github steals my software, the 'software conservatory' steals my software, etc.

I dont want it in a vault, I dont want you to do anything other than read it on my site. I dont want an archive. most of my code is not licensed. All rights reserved.

It's there as a personal portfolio that's it.

And these scanners don't respect the LICENSE file, they think if its on the web - they can not just index it but make full copys and reproduce it.

zokier 4 days ago|
> most of my code is not licensed. All rights reserved.

By virtue of uploading code to github you are granting them license as per their terms of service.

calvinmorrison 4 days ago|||
Licensing a repository Public repositories on GitHub are often used to share open source software. For your repository to truly be open source, you'll need to license it so that others are free to use, change, and distribute the software.

In this article Choosing the right license We created choosealicense.com, to help you understand how to license your code. A software license tells others what they can and can't do with your source code, so it's important to make an informed decision.

You're under no obligation to choose a license. However, without a license, the default copyright laws apply, meaning that you retain all rights to your source code and no one may reproduce, distribute, or create derivative works from your work.

via https://docs.github.com/en/repositories/managing-your-reposi...

zokier 4 days ago||
> Because you retain ownership of and responsibility for Your Content, we need you to grant us — and other GitHub Users — certain legal permissions, listed in Sections D.4 — D.7. These license grants apply to Your Content. If you upload Content that already comes with a license granting GitHub the permissions we need to run our Service, no additional license is required. You understand that you will not receive any payment for any of the rights granted in Sections D.4 — D.7. The licenses you grant to us will end when you remove Your Content from our servers, unless other Users have forked it.

https://docs.github.com/en/site-policy/github-terms/github-t...

panny 4 days ago|||
The important part of his statement to me was:

>on my site

That means not uploaded to github. That means self hosted, as is the point of the main discussion.

>these scanners don't respect the LICENSE file

I don't think github scans outside repos, but what is stated there certainly applies to OpenAI and others. They don't have a license to do what they are doing, but the US is not enforcing copyright law on them out of fear of losing the AI race.

dinkleberg 4 days ago||
I got the self-hosting bug a few years back and have been running a gitea server (among many others) on a mini PC running in my basement that is setup with tailscale so I can connect to it from anywhere, and it has been fantastic. For any OSS projects that I want to be open to the world, I still put it up on GitHub. But for anything else, it is just going on my Gitea instance.
skydhash 4 days ago|
I just use ssh. I would use Gitea if it was a team project, but it's too much of a hassle for my personal usage. So creating a repository is `ssh git@server git init --bare repo.git` and the remote is `git@server:repo.git`. Pretty much all I need.
abound 4 days ago||
For my private, personal Git server, I recently moved from Gitea to Soft Serve [1], and have enjoyed how light and fast it is. I have it hooked up via Tailscale (using TS_DEST_IP to forward traffic [2]), so it has its own IP on the network and I don't have services fighting for port 22.

TUI tools over SSH definitely aren't for everyone, but if that's your style and you want a place to dump all your non-public projects, it's a great choice.

Most non-private stuff goes on Sourcehut, and anyone can contribute via email (i.e. without any account) assuming they don't mind going through the arcana required to set up git-send-email.

[1] https://github.com/charmbracelet/soft-serve

[2] https://hub.docker.com/r/tailscale/tailscale

Fluorescence 4 days ago||
What did you not find fast about gitea/forgejo?

I've really enjoyed using them but I guess I don't do much with the web interface.

> TS_DEST_IP

So you run tailscale in your git server container so it gets a unique tailnet ip which won't create a conflict because you don't need to ssh into the container?

I might give that a go. I run tailscale on my host and use a custom port for git which you set once in your ~/.ssh/config for host/key config on client machines and then don't need to refer to it repo uris.

TBH, I think it's tailscale I'd like a light/fast alternative to! I have growing concerns because I often find it inexplicably consuming a lot of CPU, pointlessly spamming syslog (years old github issues without response) or otherwise getting fucked up.

abound 3 days ago||
> What did you not find fast about gitea/forgejo?

They're plenty fast, but it's hard to match the speed of terminal tools if you're used to working that way. With Soft Serve, I'm maybe 10 keystrokes and two seconds away from whatever I want to access from a blank desktop. Even a really performant web application is always going to be a bit slower than that.

Normally that kind of micro-optimization isn't all that useful, but it's great for flitting back and forth between a bunch of projects without losing your place.

> So you run tailscale in your git server container so it gets a unique tailnet ip which won't create a conflict because you don't need to ssh into the container?

Pretty much. It's a separate container in the same pod, and shows up as its own device on the tailnet. I can still `kubectl exec` or port forward or whatever if I need to access Soft Serve directly, but practically I never do that.

> TBH, I think it's tailscale I'd like a light/fast alternative to!

I've never noticed Tailscale's performance on any clients, it "just works" in my experience. I'm running self-hosted Headscale, but wouldn't expect it to be all that different performance-wise.

account42 4 days ago|||
What do you even need a git server for if its just for private projects - you can have a remote repo accessible via ssh without any other software needed.
abound 3 days ago||
Easy backups, especially for repos that use Git LFS. It's also nice to have a simple UI for browsing repos and project history. Soft Serve doesn't have built in CI/CD, but I plan on bolting on a lightweight solution there.

I have hundreds of random tools and half-finished projects, having them all accessible and searchable from a single location is convenient.

navigate8310 4 days ago||
When people say, they can contribute via email, does this mean they'll zip altered files and mail to the repo owner?
skydhash 4 days ago|||
Git has a set of commands that can either provide ready to be sent email messages as files (if you have a proper client, not the web ones), or send the formatted email for you. Most good clients have a way to directly pipe messages to the shell, so you can execute git directly from there to apply the change. Quite streamlined once you've got everything setup (not that difficult) [0].

But it does requires people to be disciplined with their changes (no wip commits). This may require learning about the flags for `git rebase` and `git commit`.

[0]: https://git-send-email.io/

goku12 3 days ago||||
No. You'd send 'patches' via email. Each patch roughly corresponds to a commit. These are diffs + commit metadata that are directly formatted as email messages. A single submission of multiple commits will be made of multiple threaded email messages. The maintainer then 'applies' the received patches to their repo to recreate the commits from the contributor. I know that this sounds complicated, but it's quite streamlined in git. You don't have to do all that manually.

There is one more way to contribute by email. And they are... surprise! Pull requests! You can send pull requests to the maintainer via email, as long as your own modified clone repo is hosted and accessible online somewhere. It doesn't have to be on the same server (unlike github forks). This is done using the `git request-pull` command.

1718627440 4 days ago|||
Wouldn't they use git format-patch?
akkartik 4 days ago||
Critical data here is how many PRs one is creating on others' projects and receiving on one's own projects. To me OP sounds like "Lifestyles of the Rich and Famous." At my level of git collaboration, just git push contributions on any code forge and send me a link, and I'll do the work to pull it in wherever I am.
dividedcomet 3 days ago||
I love hosting my personal git, so glad to see others do! I use it for certain projects that I just want to be lazy about (personal website with sensitive data committed to the repo) projects that are for friends/family and don’t need to be public. I chose gitea maybe 2 years ago? And it’s been great. Very light weight compared to gitlab, with useful things like actions. So I can push a new commit to main on my personal server and it’ll deploy my website to the server. I still publish things I want to share to GitHub, but not everything.

I think the thing that sets it apart from others would be I run it on a m2 Mac mini? Very low power consumption, never makes any noise, and seemingly has plenty of power for whatever I need to get done.

mixcocam 4 days ago||
I think that the best way to move away from github is to go full chad and doing mailing list with patch submissions à la LKML.
edent 4 days ago|
Perhaps I'll go old-school and insist that any patches are stamped into punch-cards before I'll accept them.
000ooo000 3 days ago|||
We get it, you can't operate Git outside GitHub. You can stop commenting as such now.
mixcocam 3 days ago|||
only rational way to move forward!

but in all seriousness, i do think that there is a lot of merit in the LKML way of doing things. otherwise all of our servers would be on fire now!

maybe and the insane capacity to sell things from the githubs, gitlabs of the world have brainwashed us!

leephillips 3 days ago||
So much here. If I have some personal code that I want to share I just use Git, like on this page:

https://lee-phillips.org/vortex/

impure 4 days ago||
GitLab is open source, you can self host it. Although the system requirements are quite high, you will not be able to host it on a two euro VPS.

And I wouldn’t be that concerned about contributors. It’s only the very top projects that get any contributors. And even then most of the time contributors are not worth the hassle.

BatFastard 4 days ago||
I recently began running Gitea on my NAS to host an unreal5 project which requireds significant LFS, Github's free LFS limits are very small. And honestly trying to decipher their paid account limits was too much for my old brain that day.

Anyone have experience with LFS on other repos?

kwar13 4 days ago|
I've tried the same thing and couldn't quite move away from the network effects of Github.
goku12 4 days ago|
Looks like this reply [1] was more suited to your comment.

[1] https://news.ycombinator.com/item?id=45198395

More comments...