我无法克隆新创建的存储库。我遇到了以下错误。
$ git clone https://github.xxxxx.com/zzzzzz.git
Cloning into 'zzzzzz'...
Username for 'https://github.xxxxxx.com': yyyyy
Password for 'https://yyyyy@github.xxxxxx.com':
remote: Internal Server Error.
remote:
fatal: unable to access 'https://github.xxxxxx.com/zzzzz.git/': The requested URL returned error: 500
我已成功生成 ssh key 并按照以下 URL 中的说明更新了 github 设置中的 key
https://help.github.com/articles/generating-ssh-keys/
执行命令时认证成功: git -T git@github.xxx.com
此外,根据我的理解,如果我们设置 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
最佳答案
这很可能是 GitHub 服务的问题。我推荐contacting them并解释问题所在。
维基百科是这样解释 500
响应码的:
500 Internal Server Error
A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.
基本上,GitHub 端点出了点问题。
但是,因为您已经设置了 SSH key ,您可以使用 ssh url 克隆您的存储库:
git clone git@github.com:owner/repo.git
关于git - 我在 git clone 上收到 500 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33086132/