TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Code your own Multi-User Private Git Server

64 点作者 moomerman超过 13 年前

7 条评论

X-Istence超过 13 年前
This just seems to be a case of Not Invented Here syndrome. Using gitolite or gitosis would have done the job faster, gives you the ability to have acl's set up per user and all of it uses simple configuration files.
评论 #3057777 未加载
评论 #3057478 未加载
评论 #3059317 未加载
chriseidhof超过 13 年前
I use gitosis, and it's very simple to set up and manage. It doesn't feel like overkill at all.
评论 #3057049 未加载
评论 #3058323 未加载
CodeMage超过 13 年前
Don't see why it was necessary to criticize the post so much. True, the title is a bit inadequate, but it's nice to find a combination of several tidbits, tips and tricks combined on one page.
评论 #3057785 未加载
wccrawford超过 13 年前
Copying code into a file isn't 'coding'. And it took a lot more than 5 minutes to work all this out.
评论 #3056767 未加载
aaronblohowiak超过 13 年前
So, most of this is based on the ability to specify the command that the user is <i>forced</i> to run in authorized_keys to be a wrapper command that you wrote. This wrapper command reads its arguments and then will execve git shell as appropriate.<p>What's important to note is that this <i>also</i> talks about SSH_ORIGINAL_COMMAND, which is the environment variable set by sshd when invoking the forced command that is specified in authorized_keys.<p>Clever hack.
jln超过 13 年前
Isn't the point of the <i>D</i> in <i>DVCS</i> that this is supported out of the box? What's wrong with:<p><pre><code> root@server# apt-get install git-core git@server$ mkdir ~git/repo.git git@server$ git init $! user@client$ git remote add origin ssh://git@server/repo.git</code></pre>
Gonzih超过 13 年前
Nice education post.