Files
nexus/wiki/concepts/Git代理配置.md
2026-04-14 16:02:50 +08:00

703 B
Raw Blame History

title, type, tags, sources, last_updated
title type tags sources last_updated
Git代理配置 concept
Git
代理
GitHub
git-push-connection-reset
2026-04-14

Definition

为Git单独设置HTTP或SOCKS5代理解决国内访问GitHub的连接问题。

HTTP代理配置

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

SOCKS5代理配置

git config --global http.proxy socks5://127.0.0.1:10808
git config --global https.proxy socks5://127.0.0.1:10808

取消代理

git config --global --unset http.proxy
git config --global --unset https.proxy

Connections