【发布时间】:2015-07-24 00:31:22
【问题描述】:
当我这样做时:
git clone https://example.com/root/test.git
我收到此错误:
致命:HTTP 请求失败
当我使用 SSH 时:
git clone username git@example.com:root/test.git
我收到此错误:
在 /server/user/git@example.com:root/test.git/.git/ 中初始化空的 Git 存储库
致命:“用户”似乎不是 git 存储库
致命:远端意外挂断
这是一个私有存储库,我已经添加了我的 SSH 密钥。
【问题讨论】:
-
您将不得不向我们提供更多信息或阅读 git clone 文档并关注它们...git clone:git-scm.com/docs/git-clone 或告诉我们您尝试克隆的实际名称.. .
-
This 解释了为什么在您的项目是私有的情况下只复制项目主页中的链接是错误的。