JavaScript is required
Blog About

git连接配置代理

2025/01/20
2 mins read
See this issue
# 开发实践
Back

Git报错: Failed to connect to github.com port 443

# 配置socks5代理

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

# 配置http代理

通常情况只需要配置http代理就可以了

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

端口与代理软件一致 Image