HTTP 上的"git clone"失败,"repository not found"



我正在尝试设置一个可公开访问的git存储库,该存储库可以通过我物理自己拥有并具有根源访问的服务器上的http克隆,但似乎我似乎我遗漏了什么。我是Git的新手,所以我不能很好地进行故障排除,但这就是我所知道的:

  1. 我能够用git clone ssh://git@repo.alaskawh.com/awhsome-framework克隆GIT存储库
  2. git clone http://repo.alaskawh.com/framework使用fatal: repository 'http://repo.alaskawh.com/framework/' not found
  3. 失败
  4. http://repo.alaskawh.com/framework/当我在Web浏览器中访问时,git存储库中的文件很好

/var/lib/gitolite/repositories/awhsome-framework.git/var/www/repo.alaskawh.com/framework/的符号链接,我创建了包含该行exec git update-server-info的文件hooks/post-update,并且我确保了用户权限正确。

有人知道我在做什么吗?

您应该设置Git Smart HTTP服务器后端。这里提供其他文档。这将通过HTTP提供简单有效的Git托管解决方案。

相关内容

最新更新