Lurker News
Back to discussion

Comment by mejutoco

mejutoco6 replies#
> 4. Do you just want to host repositories?

an ssh connection and

    git --bare init
on your ssh accessible server works just fine
rhdunn1 reply#
That'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#
Cool 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.

myaccountonhn3 replies#
It can be as brief as:

ssh server git --bare init myrepo.git
git clone server:myrepo.git

sunshine-o#
Beautiful !
jolmg#
> git clone server:myrepo.git

or if your local repo existed first:

  git remote add server server:myrepo.git
  git push -u server @
edgyquant1 reply#
It 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
mejutoco1 reply#
> 4. Do you just want to host repositories?
edgyquant1 reply#
Yes 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

Continue this thread — 1 reply

hamburglar#
If 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.

zombot#
Is that a just cause?
chrysoprace1 reply#
I 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#
I 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.
sincerely1 reply#
edit: totally wrong
ysavir2 replies#
I think they mean the "just" in "Do you just want to host repositories?", implying that it's never "just" hosting repositories, and the needs will continue to grow beyond what the simple solution offers.

Continue this thread — 2 replies

doctorpangloss#
i used to feel the same way, but with coding agents, the Justers are surely having the last laugh
bsoles#
At 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?