logoalt Hacker News

mejutocoyesterday at 5:51 PM5 repliesview on HN

> 4. Do you just want to host repositories?

an ssh connection and

    git --bare init
on your ssh accessible server works just fine

Replies

janalsncmyesterday at 8:06 PM

“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

show 5 replies
myaccountonhnyesterday at 6:18 PM

It can be as brief as:

ssh server git --bare init myrepo.git

git clone server:myrepo.git

show 3 replies
rhdunnyesterday at 5:57 PM

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.

show 1 reply
edgyquantyesterday at 7:26 PM

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

show 1 reply