# 为 GitHub 仓库的 URL 设置代理 git config --global http.https://github.com.proxy http://127.0.0.1:1080 git config --global https.https://github.com.proxy https://127.0.0.1:1080 # 如果你使用的是 SOCKS5 代理 git config --global http.https://github.com.proxy socks5://127.0.0.1:1080 git config --global https.https://github.com.proxy socks5://127.0.0.1:1080 # 清除 Gitee 的代理设置(如果有) git config --global --unset http.https://gitee.com.proxy git config --global --unset https.https://gitee.com.proxy # 或者显式设置为空 git config --global http.https://gitee.com.proxy "" git config --global https.https://gitee.com.proxy "" # 查看所有代理配置 git config --global --get-regexp proxy