Git使用系统代理

First Post:

Last Update:

Word Count:
95

Read Time:
1 min

解决Github port 443 : Timed out问题。
实际上就是Git使用和系统代理端口未对接的问题。

问题

报错:

Failed to connect to github.com port 443 : Timed out

解决

找到你自己的代理的端口。(我这里是7890)

然后在Git中输入:

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

大功告成!