原因分析
使用了代理
解决方法
修改Git 的网络设置
注意修改成自己的IP和端口号,在网络->代理服务器里面查看
git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy http://127.0.0.1:7890
取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
查看代理
git config --global --get http.proxy
git config --global --get https.proxy