我正在尝试设置一个可公开访问的git存储库,该存储库可以通过我物理自己拥有并具有根源访问的服务器上的http克隆,但似乎我似乎我遗漏了什么。我是Git的新手,所以我不能很好地进行故障排除,但这就是我所知道的:
- 我能够用
git clone ssh://git@repo.alaskawh.com/awhsome-framework
克隆GIT存储库 -
git clone http://repo.alaskawh.com/framework
使用fatal: repository 'http://repo.alaskawh.com/framework/' not found
失败 - 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托管解决方案。