【发布时间】:2011-02-12 16:34:06
【问题描述】:
我使用以下指南在我的 ubuntu 10.04 服务器上设置了一个带有 gitosis 的 git repo: http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way
它工作得很好,我可以将配置克隆到我的 ubuntu 10.10 台式计算机,并在那里提交更改。
没关系,但我的大部分实际编码都是在服务器上完成的。所以我需要在本地克隆 configuration/gitosis-admin.git 存储库和其他存储库。
git clone --local file:///home/git/repositories/gitosis-admin.git 给我: 致命:'/home/git/repositories/gitosis-admin.git' 似乎不是 git 存储库 致命:远端意外挂断
我将我的服务器用户添加到 git 组并得到: 致命:无法打开“/home/git/repositories/gitosis-admin.git/objects”:权限被拒绝
然后我尝试在服务器上创建一个公钥,并将其添加到密钥管理 repo 中,将用户名添加为配置中的 (user) 和 (user)@(hostname) 到: git clone git@localhost:gitosis-admin.git 或 git clone git@(hostname):gitosis-admin.git 两者都要求我输入 git@(hostname) 密码
当我回到我的桌面并查看 gitosis-admin 存储库时,gitosis.conf 列出了:
[gitosis]
[组 gitosis-admin]
可写的 gitosis-admin
成员 = (desktopUN)@(desktopHostname) (serverUN)@(serverHostname)
但是在服务器上,如果我进入 /home/git/repositories/gitosis-admin.git/ 和 cat gitosis.conf,它会列出
[gitosis]
[组 gitosis-admin]
可写的 gitosis-admin
成员 = (desktopUN)@(desktopHostname)
我无法理解这一点,我该如何设置才能让它按照我想要的方式工作。我很有可能在这一切背后有一些菜鸟咳嗽,但我已经花了 5 个小时试图让它现在工作,而且我需要 2 分钟来建立一个 svn 回购。所以我越来越不耐烦了..
谢谢
【问题讨论】: