Skip to main content

Git全局代理

命令#

# v2raygit config --global http.proxy http://127.0.0.1:1087git config --global https.proxy http://127.0.0.1:1087
# v2rayNgit config --global http.proxy http://127.0.0.1:10809git config --global https.proxy http://127.0.0.1:10809
# 取消git config --global --unset http.proxygit config --global --unset https.proxy

修改配置文件#

编辑 ~/.gitconfig 并添加以下内容:

[http]proxy = http://127.0.0.1:10809[https]proxy = http://127.0.0.1:10809