git - 我在 git clone 上收到 500 错误

标签 git github

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

$ 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/

相关文章:

Git 忽略随机数字文件夹名称

git - 如何在git中获取所有本地和远程标签?

git - 我现在在哪个分支?

git - 什么是默认的 git diff 工具(和 merge 工具)?

git - 进入项目根目录的 .gitignore 不会被进入子目录的 .gitignores 覆盖

Github Mono 仓库成员(member)访问

当合并提交包含 [skip ci] 提交时,Azure DevOps Pipeline 不会触发

github - 带有私有(private) git 存储库的 Cocoapods

GitHub GUI 将文件夹从一个存储库移动到另一个存储库

eclipse - 配置 Eclipse/EGit 以跟踪上游存储库