by hrbf · 4y ago · 0 comments
Over time I realized: I don’t need to be able to merge pull requests and do code reviews in a web interface. Nowadays I’m invested in a plain Git/SSH setup with cgit as a web frontend and email patches.
It never breaks, is as secure as your server is and does everything you usually need, including user permissions.
The `git am`-based workflow is less than popular outside of FreeBSD, Linux kernel development and SourceHut though. Depending on your environment, if used in a work setting, your colleagues may balk.
That being said and given the existing enterprise users of Gitea, it’s entirely natural to eventually offer solutions tailored to their use, like SSO. I wish them the best for building towards a sustainable future while staying true to their core values.
I can understand some folks not wanting to do initial setup and sourcehut already provides a nice web interface for it. But for actually contributing stuff emails are pretty unbeatable IMO.
https://herrbischoff.com/2021/10/how-to-install-cgit-with-gi...
I’ve also tripped over something regarding “master” and “main” branches that’s easily fixed:
https://herrbischoff.com/2022/05/cgit-missing-idle-column-on...
If you want it even simpler, just run
mkdir repo.git && cd repo.git
git init —bare
in a folder on a server you have SSH access to and clone it on your local machine like git clone user@server:/path/to/repo.gitGiven all users can share a user account on a server, it will behave exactly like you expect it to. Again, that's a core Git feature. Additionally, AFAIK Git has its own locking management. Also look up the `--shared` flag. `man git-init` is very helpful.