git 设置和取消代理

来源:互联网 发布:襄阳市云计算产业协会 编辑:程序博客网 时间:2024/05/01 01:59

本地开启VPN后,GIt也需要设置代理,才能正常略过GFW,访问goole code等网站

设置如下(可复制):

git config --global https.proxy http://127.0.0.1:1080

 git config --global https.proxy https://127.0.0.1:1080

git config --global http.proxy 'socks5://127.0.0.1:1080' 

git config --global https.proxy 'socks5://127.0.0.1:1080'


取消

git config --global --unset http.proxy

git config --global --unset https.proxy

0 0
原创粉丝点击