原因可能是设置了代理,只要取消掉代理就能解决。 打开git bash 输入
git config --global --unset http.proxy
再重启IDEA,git就能使用,github网页也能打开。