致命:无法访问“”:21058 毫秒后无法连接到 github.com 端口 443:无法连接到服务器

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

我安装并一直在使用 GitHub Desktop,直到几天前它还可以正常工作。但是,现在我无法使用 GitHub Desktop 将文件推送或发布到 GitHub。我不记得我做了什么可能导致这个问题。当我尝试推送或发布时,我收到一条错误消息:

致命:无法访问'https://github.com/.../.../'':21058ms后无法连接到github.com端口443:无法连接到服务器。

我希望得到一些帮助来解决这个错误,因为我花了很长时间来修复它。预先感谢您的帮助。

git github push publish
1个回答
0
投票

如果你使用VPN,你可以尝试“git config --global http.proxy http://127.0.0.1:7890(7890是你的VPN的端口)”和“git config --global https.proxy https ://127.0.0.1:7890"。 如果没有,你可以尝试“git config --global unset http.proxy”和“git config --global unset https.proxy”

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