gpt4 book ai didi

git - git无法克隆:远端意外挂断

转载 作者:行者123 更新时间:2023-12-02 14:14:04 25 4
gpt4 key购买 nike

我正在将bitbucket用于我的团队项目。
该问题仅在删除本地存储库后出现(因为它不允许我进行更改,但这是另一回事了)。
但是,当我第一次克隆时,它确实起作用了(我使用了HTTP URL)。

当前,当我尝试使用Visual Studio的团队资源管理器进行克隆(“团队资源管理器”选项卡:connect-> Local Git Repositories-> Clone,并输入git存储库的HTTP URL时,会出现以下消息:

Failed to clone the remote repository. See the Output window for more details.



输出窗口显示:

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。

祝好运。

关于git - git无法克隆:远端意外挂断,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37688618/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com