报错信息如图

解决方法
- 清理 git config 的配置
git config --global --unset http.proxy
git config --global --unset https.proxy
查看一下是否清除干净,如果未清除干净,则可以使用vi 手动修改
vi ~/.gitconfig
这个时候应该已经可以搞定了
如果我们开了代理,可以配置代理,这样速度会更快
git config --global http.proxy http://127.0.0.1:8001
git config --global https.proxy http://127.0.0.1:8001
配置好后查看.gitconfig 如图

网友评论