问题描述
我试图设置一个可以通过HTTP,我自己的身体和有根访问权限的服务器上克隆了一个可公开访问的git仓库,但它似乎像我想的东西。我是新来的git,所以我不能排除很好,但这里是我知道的:
I'm attempting to set up a publicly-accessible git repository that can be cloned via HTTP on a server that I physically own and have root access to, but it seems like I'm missing something. I'm new to git so I can't troubleshoot very well, but here's what I know:
- 我可以用
git的克隆ssh来克隆Git仓库://[email protected]/awhsome-framework
就好了 -
git的克隆http://repo.alaskawh.com/framework
失败致命的:库'http://repo.alaskawh.com /框架/'未找到
- 列出了git仓库文件就好当我访问它在Web浏览器
- I'm able to clone the git repository with
git clone ssh://[email protected]/awhsome-framework
just fine git clone http://repo.alaskawh.com/framework
fails withfatal: repository 'http://repo.alaskawh.com/framework/' not found
- http://repo.alaskawh.com/framework/ lists the file in the git repository just fine when I visit it in a web browser
/var/lib/gitolite/repositories/awhsome-framework.git
是一个符号链接 /var/www/repo.alaskawh.com /框架/
,我已经创建,其中包含该行的文件挂钩/后更新
EXEC git的更新服务器-info
,我已经确保用户权限是正确的。
/var/lib/gitolite/repositories/awhsome-framework.git
is a symlink to /var/www/repo.alaskawh.com/framework/
, I've created the file hooks/post-update
which contains the line exec git update-server-info
, and I've ensured that user permissions are correct.
有谁知道我在做什么错了?
Does anybody know what I'm doing wrong?
推荐答案
您应该建立一个的。其他文档,请 rel=\"nofollow\">。这将提供通过HTTP一种简单而有效的Git托管解决方案。
You should set-up a Git Smart HTTP server backend. Additional documentation is available here. This will provide a simple and efficient Git hosting solution over HTTP.
这篇关于`git的clone`通过HTTP与&QUOT失败;库没有发现"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!