Skip to main content

v2Ray

资料

代理git

全局代理

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

局部代理

在指定的仓库内执行:

git config --local http.proxy https://127.0.0.1:10808
git config --local https.proxy https://127.0.0.1:10808

github进行代理

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

查询是否代理

查询当前的 git 环境是否使用了代理。

查询全局代理

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

查询局部代理

git config --local http.proxy
git config --local https.proxy

查询对github进行的代理

git config --global http.https://github.com.proxy
git config --global https.https://github.com.proxy

取消代理

取消全局代理

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

取消局部代理

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

取消对github进行的代理

git config --global --unset http.https://github.com.proxy
git config --global --unset https.https://github.com.proxy