文章目录
问题背景
由于github在国外,很多时候我们在使用idea克隆开源项目的时候,没办法检出,提示 连接重置。
办法
1、设置git代理;
使用以下命令查看当下git的代理配置。
shell
git config --global http.proxy
git config --global https.proxy
如果存在代理配置,则进行取消设置,或者核实是否是当前代理配置。
shell
git config --global --unset http.proxy
git config --global --unset https.proxy
-
进行设置代理
shellgit config --global http.proxy http://127.0.0.1:7890 git config --global https.proxy https://127.0.0.1:7890
2、再次克隆项目;
对idea 进行系统设置http代理,设置为自动检测代理设置,这样就可以跟随咱们的操作系统进行统一网络使用方式。
![](https://i-blog.csdnimg.cn/img_convert/2ecf19a718b36d6e23cd186ba2a7dcfc.png)
存中...(img-b7VylAzD-1739152654035)]