git-instaweb 和 git-clone

标签 git

我使用 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/

相关文章:

git - 我说的对吗 'merge' 和 'rebase' 的语法意味着相反的操作?

git - merge 后如何跟踪提交的来源?

git - 我如何使 git log --graph 成为默认值

git - 我如何找到 Git 仓库的版本

git - 如何在不推送 git 中的任何其他引用的情况下推送 'refs/replace'?

Git pre-svn-dcommit 钩子(Hook)

git - 无法 git 添加我使用 create-react-app 创建的项目

公司网络上的 git SSL 问题

git - 在 Git 中将许多提交 rebase 为一个提交。我究竟做错了什么?

git - 修改 merge 前 Git 提交的消息