Skip to main content


Simple and Small Git Hosting

#development #developer #blog #git

maddie.info/2023/09/05/simple-…

reshared this

in reply to M. The Crystalline Entity

oooh I’m glad someone is writing about this.

I moved to this mode for awhile but ran into some problem that I’ve since forgotten so I should give it another try. I really need a simple and reliable way to keep my repositories somewhere safe and accessible.

in reply to M. The Crystalline Entity

@Madeline :antiverified: this feels like the correct git hosting. I like the power of being able to PR easily, but I guess I could do that with MFA

This is really good

Unknown parent

@Madeline :antiverified: I have sent patches over email! It's a different process (not a hard one ime) - git will make it, you slam it into your MUA and then the other side takes git's codeblock and git has an injestion command.

Caveat: I send mail with telnet when I'm too scared to look at my inbox

Unknown parent

@Madeline :antiverified: hence the caveat - it makes sense, and it feels like an edge I might just not have touched at all
Unknown parent

Binder

missed the ssh part my bad. You covered that very well.

I often use an NFS, CIFS, or even SSHfs and just put git there.

Unknown parent

Binder
I've used prolly a dozen VCS systems... but I just can't wrap my brain around git very well.
in reply to M. The Crystalline Entity

absolutely bookmarking for later. For my personal stuff gitlab / gitea are too much. Any kind of Web interface is too much. Just a repo host on my Pi. This cuts a straight line through that process. Thanks!
Unknown parent

@luna @Madeline :antiverified: It's a little up in the air, but I liked Phabricator, but its been replaced by phorge.it/, which hopefully is as good as Phab
Unknown parent

@luna @Madeline :antiverified: I used it fairly heavily, it will work with git repos or mercurial repos, it can make repos and do forgey actions on them, similar to Gitea (which I use at home since simple OpenBSD package and I set it up in the Wilderness Years without a formal Phab upstream)
in reply to M. The Crystalline Entity

thanks for the write-up, that's by far the best I've seen. And I learned about zeroconf, so bonus points! \m/
in reply to M. The Crystalline Entity

hi! you wrote,

If you want to serve a read-only copy, just stick your repo in a folder that’s served by nginx


i think there might be a step missing here. pretty sure that for this to work you need to run git update-server-info in the repo that's being served over http. (and re-run that command every time the repo changes.)

i think yours is much clearer and more accessible, but here's a similar writeup on the subject that i did: orbital.rodeo/~mike/20210804-s…

in reply to M. The Crystalline Entity

Short and sweet and to the point! Great writing. I got it working on my server and I can think of at least two use cases: Pass and dotfiles, i.e. stuff I want to share with myself, and to live on after my computer dies, but I'm not meaningfully going to collaborate with someone on it.
in reply to M. The Crystalline Entity

I see a © copyright in the footer, so the content you are publishing about #FOSS is under copyrights :amaze:
#FOSS
in reply to M. The Crystalline Entity

today I learned! I've been wanting my own git server but I'm pretty constrained on hardware so something I can run on a potato is very appealing
Unknown parent

zzz
nice, thx for replying 👌
Unknown parent

Peter Nelson

Gitea has a feature to mirror and keep in sync, with options on how frequently to update. It tracks branches and tags, but issues and PRs (as non-git data) are not synced.

git.fuzzle.org/petern/OpenTTD is my local mirror of OpenTTD from GitHub, although if I was doing it again I would set it up with a dedicated user instead of my normal account.

Unknown parent

Cyber-Fox 🏴‍☠️🐙

@luna

Gitolite is verry nice. I use it since years for personal git hosting.

For installing it's simple:

1. Install from the OS repo, or from the source

2. Create a "git" user (or any other name if you want)

3. Log into this user and push to it your admin public ssh key called as "yourname.pub" (replace "yourname" by your name)

4. Run command: gitolite setup -pk yourname.pub

And it's done. Your can nom do a ssh git@yourserveur to get the list of repos you have access to.