问题原因是你git开了代理的问题,只需一行命令,执行脚本关闭代理就可以解决:
git config --global --unset http.proxy
参考文献:https://blog.csdn.net/m0_38068876/article/details/115109221