3 ms·
> 4. Do you just want to host repositories? an ssh connection and git --bare init on your ssh accessible server works just fine
by mejutoco 2mo ago
> 4. Do you just want to host repositories?
an ssh connection and
git --bare init
on your ssh accessible server works just fine
- rhdunn 2mo agoThat's what gitolite does with some helper scripts for creating/setting up the repositories, adding metadata to the configs, etc. That way your `git` user can be set to reject ssh login attempts. The projects are managed by pushing a config to a gitolite admin repository.
- samlinnfer 2mo agoCool thing about gitolite is that you manage it using text files and committing to the gitolite admin git repository. We were using it until we grew tired of not having a web view to comment and review patches so we switched to gitea.
- jonahx 2mo agoQuick intro for this method: https://www.youtube.com/watch?v=iuIdBfjL62s https://www.youtube.com/watch?v=iuIdBfjL62s
- myaccountonhn 2mo agoIt can be as brief as: ssh server git --bare init myrepo.git git clone server:myrepo.git
- jolmg 2mo ago> git clone server:myrepo.git or if your local repo existed first: git remote add server server:myrepo.git git push -u server @
- eddieroger 2mo agoYou can even support Actions with this method if you're not afraid of a little scripting. https://git-scm.com/book/ms/v2/Customizing-Git-Git-Hooks https://git-scm.com/book/ms/v2/Customizing-Git-Git-Hooks
- sunshine-o 2mo agoBeautiful !
- edgyquant 2mo agoIt is much more complex than this to get basic GitHub functionality anyone who has tried can tell you that. It feels like it should be a simple command but it absolutely isn’t
- mejutoco 1mo ago> 4. Do you just want to host repositories?
- edgyquant 1mo agoYes it is not so straight forward to be able to push/pull from a repository over ssh especially with multiple users etc there are a bunch of additional configs required for this
- stephenway 1mo agoonce you add multiple users, bare git stops feeling "just" pretty fast. do you need reviews/CI too, or only shared access?
- janalsncm 2mo ago“Just” is a four letter word and a trap our industry repeatedly falls into. https://sgringwe.com/2019/10/10/Please-just-stop-saying-just https://sgringwe.com/2019/10/10/Please-just-stop-saying-just
- hamburglar 2mo agoIf all you want to do is host repositories, “just” is the appropriate word here. For lone wolf work, all I care about is having a remote that mirrors all the changes and branches I create locally. It’s just redundancy. A git bare repo and SSH are all that’s needed. I don’t do pull requests to myself, and I don’t need a bug tracker or CI.
- nine_k 2mo agoBut sometimes it's applied properly! https://github.com/casey/just https://github.com/casey/just
- zombot 1mo agoIs that a just cause?
- chrysoprace 2mo agoI hadn't read this article until now, but I started catching myself using the word at work a few years ago and I've actively been trying to avoid using it for the reasons laid out in this post.
- gosub100 1mo agoI didn't check if this was mentioned in the article but I've heard it described as a "lullaby word". I think that is very apt, and I have stopped using it whenever I can.
- sincerely 2mo agoedit: totally wrong
- bsoles 1mo agoAt least in small scale, having your own git server is trivially easy. Why are organizations so eager to put a third-party layer on top of that?