git克隆失败:远端意外挂断
git fails to clone: The remote end hung up unexpectedly
我正在为我的团队项目使用 bitbucket。
问题只在我删除本地存储库后出现(因为它不会让我提交更改,但这是另一回事)。
但是当我第一次克隆时,它确实起作用了(我使用了 HTTP URL)。
目前,当我尝试使用 Visual Studio 的团队资源管理器 GUI 进行克隆时(团队资源管理器选项卡:连接 -> 本地 Git 存储库 -> 克隆,并输入 HTTP URL 的 git 存储库,将出现以下消息:
Failed to clone the remote repository. See the Output window for more
details.
输出 window 表示:
The underlying connection was closed: The connection was closed unexpectedly.
如果我改为输入 SSH URL(再次使用相同的方法),它会弹出:
Invalid URI: The URI scheme is not valid.
如果我使用 git bash 并输入 git clone <HTTP URL>
它会打印:
error: RPC failed; curl 52 Empty reply from server
fatal: The remote end hung up unexpectedly
如果我使用 git bash 并输入 git clone <SSH URL>
它会打印:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
没有更多信息,您似乎未通过身份验证。
按照此处 bitbucket wiki 上的说明进行操作,看看是否可以解决问题
https://confluence.atlassian.com/bbkb/permission-denied-publickey-302811860.html
一定要为相应的访问方案也使用正确的 url。
祝你好运。
我正在为我的团队项目使用 bitbucket。 问题只在我删除本地存储库后出现(因为它不会让我提交更改,但这是另一回事)。 但是当我第一次克隆时,它确实起作用了(我使用了 HTTP URL)。
目前,当我尝试使用 Visual Studio 的团队资源管理器 GUI 进行克隆时(团队资源管理器选项卡:连接 -> 本地 Git 存储库 -> 克隆,并输入 HTTP URL 的 git 存储库,将出现以下消息:
Failed to clone the remote repository. See the Output window for more details.
输出 window 表示:
The underlying connection was closed: The connection was closed unexpectedly.
如果我改为输入 SSH URL(再次使用相同的方法),它会弹出:
Invalid URI: The URI scheme is not valid.
如果我使用 git bash 并输入 git clone <HTTP URL>
它会打印:
error: RPC failed; curl 52 Empty reply from server
fatal: The remote end hung up unexpectedly
如果我使用 git bash 并输入 git clone <SSH URL>
它会打印:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
没有更多信息,您似乎未通过身份验证。 按照此处 bitbucket wiki 上的说明进行操作,看看是否可以解决问题
https://confluence.atlassian.com/bbkb/permission-denied-publickey-302811860.html
一定要为相应的访问方案也使用正确的 url。
祝你好运。