0%

Git代理命令

Git设置代理命令

1
2
git config --global http.proxy "http://127.0.0.1:10807"
git config --global https.proxy "http://127.0.0.1:10807"

注意: 代理的端口号需要根据实际情况进行调整

Git清除代理命令

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