Github push 超时

Github push 的时候报错超时

使用 ping 工具也无法连上 Github

方法一

这时候我们需要让所有的网络连接都走代理

解决方案:开启 TUN Mode

null Github push 超时 开发日常

新版操作如下:

null Github push 超时 开发日常

方法二

打开代理工具,查看port,大部分为 7890,少部分为 7892。

为所有仓库设置全局代理

git config --global http.proxy socks5://127.0.0.1:7890
git config --global https.proxy socks5://127.0.0.1:7890

为特定仓库设置代理

cd 项目目录
git config http.proxy http://127.0.0.1:7890
git config https.proxy http://127.0.0.1:7890

本文标题:《Github push 超时》作者:Scar
原文链接:https://cxk.me/post/71.html
特别注明外均为原创,转载请注明。

分享到微信

扫描二维码

可在微信查看或分享至朋友圈。

上一篇: 未命名

相关文章

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。