为 Git 设置 Gitosis 时出现问题
这是我遇到的问题,
我按照文档中提到的步骤设置 Gitosis http:// www.jedi.be/blog/2009/05/06/8-ways-to-share-your-git-repository/#gitosis
我成功完成了以下步骤
安装gitosis 初始化 gitosis 帐户
将 gitosis-admin 存储库检出到我的本地计算机,并将我的 Web 服务器的公钥添加到 keydir Directoty 中,并添加配置以允许 Web 服务器帐户进行写入。
在 gitosis-admin 中提交这些更改并推送它们。这会将公钥添加到 gitosis 用户的authorized_keys 文件中。
现在我转到我的 Web 服务器并尝试推送一个新的存储库,
$ cd project-X
$ git remote add origin gitosis@gitosis-server:project-X.git
$ git push origin master:refs/heads/master
这里它要求我提供密码,但它不应该提供密码,而是使用身份文件。
请帮忙。
Here is the Problem I am having
I followed the Steps mentioned in the Doc for setting up Gitosis
http://www.jedi.be/blog/2009/05/06/8-ways-to-share-your-git-repository/#gitosis
I completed the following steps successfully
Install gitosis
Initializing the gitosis account
Checkout the gitosis-admin repository to my local machine and add a Public Key of my Web Server to the keydir Directoty and add Configuration to allow the Web Server Account to write.
Commit these changes in gitosis-admin and push them. This adds the Public Key to authorised_keys file for the gitosis user.
Now I go to my Web Server and try to push a new repository
$ cd project-X
$ git remote add origin gitosis@gitosis-server:project-X.git
$ git push origin master:refs/heads/master
Here it asks me to provide the Password, which it shouldn't and use the identity file instead.
Please Help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
用户不是“gitosis”。它是“git”,因此
git remote add origin git@gitosis-server:project-X.git
。另外,使用 gitolite 而不是 gitosis。吉特西斯已经老了,已经死了,而且开始散发出奇怪的味道。The user isn't "gitosis". It's "git", so
git remote add origin git@gitosis-server:project-X.git
. Also, use gitolite instead of gitosis. Gitosis is old and dead, and it's starting to smell funny.