`git的clone`通过HTTP与&QUOT失败;库没有发现" [英] `git clone` over HTTP Fails with "repository not found"

查看:249
本文介绍了`git的clone`通过HTTP与&QUOT失败;库没有发现"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图设置一个可以通过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:


  1. 我可以用 git的克隆ssh来克隆Git仓库://git@repo.alaskawh.com/awhsome-framework 就好了

  2. git的克隆http://repo.alaskawh.com/framework 失败致命的:库'http://repo.alaskawh.com /框架/'未找到

  3. http://repo.alaskawh.com/framework/ 列出了git仓库文件就好当我访问它在Web浏览器

  1. I'm able to clone the git repository with git clone ssh://git@repo.alaskawh.com/awhsome-framework just fine
  2. git clone http://repo.alaskawh.com/framework fails with fatal: repository 'http://repo.alaskawh.com/framework/' not found
  3. 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?

推荐答案

您应该建立一个的 Git的智能HTTP服务器后端。其他文档,请 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失败;库没有发现"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆