我使用 git-instaweb 在我的本地机器上设置了一个 git 网络服务器。
现在我希望能够从该存储库中克隆,但是当我尝试时
git clone http://localhost:1234
它给我一个错误:
fatal: http://localhost:1234/info/refs not found: did you run git update-server-info on the server?
git update-server-info
没有帮助。有人对此有解决方案吗?
提前谢谢你。
最佳答案
Git instaweb 专为在 Web 浏览器中浏览存储库而设计,而不是您可以从中克隆的东西。尝试转到 http://localhost:1234在您的网络浏览器中查看。
如果你想从某物中克隆,你可能正在寻找 git-daemon相反。
关于git-instaweb 和 git-clone,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5227756/