gpt4 book ai didi

git - 如何解析 "git pull,fatal: unable to access ' https ://github. com...\': Empty reply from server"

转载 作者:IT王子 更新时间:2023-10-29 00:45:48 30 4
gpt4 key购买 nike

当我使用 Git 命令“git pull”更新我的存储库时失败,消息如下:致命:无法访问“...”:来自服务器的空回复。

我尝试使用 GitHub 应用程序,但警告:

Cloning into 'renren_mobile'...
warning: templates not found /Applications/GitHub.app/Contents/Resources/git/templates
2014-11-23 13:58:57.975 GitHub for Mac Login[659:11891] AskPass with arguments: (
"/Applications/GitHub.app/Contents/MacOS/GitHub for Mac Login",
"Username for 'https://github.com': "
)
2014-11-23 13:58:58.032 GitHub for Mac Login[660:11915] AskPass with arguments: (
"/Applications/GitHub.app/Contents/MacOS/GitHub for Mac Login",
"Password for '': "
)
fatal: unable to access '...': Empty reply from server
(128)

最佳答案

我一直陷入这个问题,直到我发现我没有登录我的 VPN。

  1. 如果您为 VPN 配置了代理,则需要登录到您的 VPN 才能使用代理。

  2. 要在 VPN 之外使用它,请使用 unset 命令:

    git config --global --unset http.proxy

记住在 VPN 中设置代理。

关于git - 如何解析 "git pull,fatal: unable to access ' https ://github. com...\': Empty reply from server",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27087483/

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