// 设置你自己的IP和host
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 --list
命令查看是否配置成功
移除git代理配置,可以用下面命令
git config --global --unset http.proxy
git config --global --unset https.proxy
网友评论