github无法push
问题:无法push到github仓库
表现为
fatal: unable to access 'https://github.com/Jessica-xyx/Jessica-xyx.github.io.git/': Failed to connect to github.com port 443 after 158754 ms: Timed out
并且ping github.com也表示请求超时
正在 Ping github.com [199.59.149.235] 具有 32 字节的数据:
请求超时。
请求超时。
请求超时。
请求超时。
199.59.149.235 的 Ping 统计信息:
数据包: 已发送 = 4,已接收 = 0,丢失 = 4 (100% 丢失),
使用代理能正常访问github页面
配置SSH代理,当配置了系统或 Git 使用代理,所有的网络请求(包括 git push)都会被重定向到本地的代理服务(如 Clash)。Clash 会接收这些请求,并根据规则将请求转发到目标服务器。
git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy https://127.0.0.1:7890