703 B
703 B
title, type, tags, sources, last_updated
| title | type | tags | sources | last_updated | ||||
|---|---|---|---|---|---|---|---|---|
| Git代理配置 | concept |
|
|
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