当你在使用Git与GitHub交互时,可能会遇到这样的错误信息:“Failed to connect to github.com port 443 after 21090 ms: Couldn‘t connect to server”。这通常发生在使用VPN后,系统端口号与Git端口号不一致时
需要查看vpn占用的系统端口,此处使用的为v2rayN,端口通常为10808
bash自动换行:关放大阅读展开代码git config --global http.proxy 127.0.0.1:<你的端口号> git config --global https.proxy 127.0.0.1:<你的端口号>
plaintext自动换行:关放大阅读展开代码Microsoft Windows [版本 10.0.22631.4890] (c) Microsoft Corporation。保留所有权利。 C:\Users\H>git config --global http.proxy 127.0.0.1:10808 C:\Users\H>git config --global https.proxy 127.0.0.1:10808
在此链接git
bash自动换行:关放大阅读展开代码H@DESKTOP-1AO4P84 MINGW64 ~/Desktop/blog (main) $ git pull Already up to date. H@DESKTOP-1AO4P84 MINGW64 ~/Desktop/blog (main) $ git push Enumerating objects: 9, done. Counting objects: 100% (9/9), done. Delta compression using up to 24 threads Compressing objects: 100% (4/4), done. Writing objects: 100% (5/5), 1.83 KiB | 1.83 MiB/s, done. Total 5 (delta 3), reused 0 (delta 0), pack-reused 0 (from 0) remote: Resolving deltas: 100% (3/3), completed with 3 local objects. To https://github.com/Hedeoer/blog.git 495684e..3820282 main -> main
本文作者:hedeoer
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!