TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Code your own Multi-User Private Git Server

64 pointsby moomermanover 13 years ago

7 comments

X-Istenceover 13 years ago
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 未加载
chriseidhofover 13 years ago
I use gitosis, and it's very simple to set up and manage. It doesn't feel like overkill at all.
评论 #3057049 未加载
评论 #3058323 未加载
CodeMageover 13 years ago
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 未加载
wccrawfordover 13 years ago
Copying code into a file isn't 'coding'. And it took a lot more than 5 minutes to work all this out.
评论 #3056767 未加载
aaronblohowiakover 13 years ago
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.
jlnover 13 years ago
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>
Gonzihover 13 years ago
Nice education post.