解决方案1:
// 请替换xxxx和端口8080为你的代理
git config --global http.proxy ‘http://xxx.xxx.xxx.xxx:8080’
解决方案2:
vim ~/.gitconfig
增加以下内容:
[http]
proxy = ‘http://xxx.xxx.xxx.xxx:8080’
// 请替换xxxx和端口8080为你的代理
git config --global http.proxy ‘http://xxx.xxx.xxx.xxx:8080’
vim ~/.gitconfig
增加以下内容:
[http]
proxy = ‘http://xxx.xxx.xxx.xxx:8080’