我在 git clone 上遇到 500 错误

问题描述 投票:0回答:4

我无法克隆新创建的存储库。我遇到以下错误。

$ git clone https://github.xxxxx.com/zzzzzz.git
Cloning into 'zzzzzz'...
Username for 'https://github.xxxxxx.com': yyyyy
Password for 'https://[email protected]':
remote: Internal Server Error.
remote:
fatal: unable to access 'https://github.xxxxxx.com/zzzzz.git/': The requested URL returned error: 500

我已成功生成 ssh 密钥并按照以下 URL 中的说明更新了 github 设置中的密钥

https://help.github.com/articles/generate-ssh-keys/

执行命令时认证成功: git -T [电子邮件受保护]

根据我的理解,如果我们设置 ssh,git clone 命令不应该要求用户名和密码。但它仍然需要它们。

debug1: Authentication succeeded (publickey).
Authenticated to github.xxxxx.com ([10.28.22.44]:22).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
Hi xxxx! You've successfully authenticated, but GitHub does not provide shell access. 
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 3880, received 1696 bytes, in 0.2 seconds
Bytes per second: sent 19132.2, received 8363.0
debug1: Exit status 1
git github
4个回答
13
投票

这很可能是 GitHub 服务的问题。我建议联系他们并解释问题所在。

维基百科是这样解释

500
响应代码的:

500 内部服务器错误

出现意外情况时给出的通用错误消息 遇到过,没有更具体的消息适合。

基本上,GitHub 端点出现了问题。


但是,由于您已经设置了 SSH 密钥,因此您可以使用 ssh url 来克隆您的存储库:

git clone [email protected]:owner/repo.git

4
投票

我有同样的问题,但是在GitLab中,问题的答案是GitLabis进行部署。

Deploy in progress
Please try again in a few minutes.

Please contact your GitLab administrator if this problem persists.

所以我在几个小时内就连接成功了。


0
投票

供将来参考 - 我从 Git CMD 收到了相同的错误,尝试通过 Windows powershell 工作。


-1
投票

尝试连接到 VPN(至少尝试使用 2 个不同的位置),这对我有用。我也遇到了同样的问题

© www.soinside.com 2019 - 2024. All rights reserved.