Gitosis不会创建存储库 [英] Gitosis won't create repository
问题描述
我正在测试新的Git存储库。我从Subversion转换到Git,没问题。
I'm testing my new Git repository. I converted from Subversion to Git, no problem.
现在,在我的笔记本电脑上
Now, on my laptop
git remote add origin git@server:test.git
会正确返回。但是当我做的时候
returns correctly. But when I do
git push
I get
错误:gitosis.serve.main:存储库读取访问被拒绝$ / b>
error:gitosis.serve.main:repository read access denied
当我在服务器上转到 / srv / git / repositories
时,新存储库isn 't创建。
And when I go to /srv/git/repositories
on the server, the new repository isn't created.
是否有日志文件,我可以在某处查看以了解发生了什么?
Is there a log file that I can look at somewhere to figure out what's going on?
推荐答案
小心地按照README中的设置部分。它描述了访问控制。相反,使用 gitolite 会更好。它使用起来更简单,记录更完善。 Gitosis几乎已经死了。
Carefully follow the "Setting Up" portion of the README. It describes access control. You'd be much better off using gitolite instead. It's easier to use and better-documented. Gitosis is pretty much dead.
这篇关于Gitosis不会创建存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!