github推送

问题描述:

fatal: unable to access 'https://github.com/xxxxx/xxxx.git/': Failed to connect to github.com port 443 after 21117 ms: Cou ld not connect to server

解决方案:代理

首先查看自己的代理软件http端口号是多少,以v2``ray为例:

由图可知它的http端口号是10809,

于是设置代理:

git config --global http.proxy 127.0.0.1:10809
git config --global https.proxy 127.0.0.1:10809

但是这样做,碰到国内的git网站的时候也可能出现过访问不上的情况,可以取消代理

git config --global --unset http.proxy
git config --global --unset https.proxy
posted @   徐徐丶  阅读(3)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)
点击右上角即可分享
微信分享提示