我尝试使用 git push origin master
命令将更改推送到 GitHub,但是过了一段时间后显示错误:
fatal: 无法访问 'https://github.com/the-unbelievable/MiniGames.git/': 在连接 github.com 的 443 端口时操作超时
我刚刚创建了该存储库并已经提交了两次。 我通过家庭 Wi-Fi 连接到互联网,操作系统是 Mac OS X v10.10.2(Yosemite)。
我尝试使用 git push origin master
命令将更改推送到 GitHub,但是过了一段时间后显示错误:
fatal: 无法访问 'https://github.com/the-unbelievable/MiniGames.git/': 在连接 github.com 的 443 端口时操作超时
我刚刚创建了该存储库并已经提交了两次。 我通过家庭 Wi-Fi 连接到互联网,操作系统是 Mac OS X v10.10.2(Yosemite)。
C:\Users\[您的用户名]\.gitconfig
的内容,并确保已配置代理:[http]
proxy = http://yourproxy.com:8080 // Change your settings here
[https]
proxy = http://yourproxy.com:8080 // Change your settings here
从这里开始:GitHub - 连接 github 443 失败(Windows)/ 连接 gitHub 失败 - 无错误
git config --global http.proxy http[s]://userName:password@proxyaddress:port
端口号可能为3128,用户名和密码可能是您的Windows登录凭据
尝试使用以下内容配置环境:
sudo vim.tiny /etc/environment
http_proxy=http://your.proxy.server.address:port
https_proxy=http://your.proxy.server.address:port
ftp_proxy=http://your.proxy.server.address:port
git config --global http.proxy http[s]://usrGithub:passwordGithub@ipProxy:portProxy