IntelliJ IDEA使用经验(十三):使用Git克隆github的开源项目

文章目录

问题背景

由于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
  • 进行设置代理

    shell 复制代码
    git config --global http.proxy http://127.0.0.1:7890
    git config --global https.proxy https://127.0.0.1:7890

2、再次克隆项目;

​ 对idea 进行系统设置http代理,设置为自动检测代理设置,这样就可以跟随咱们的操作系统进行统一网络使用方式。

存中...(img-b7VylAzD-1739152654035)]

3、再次按常规方式进行git克隆即可。

相关推荐
purpleseashell_Lili3 小时前
commitizen,cz-git,husky 三者区别
git
摇滚侠3 小时前
零基础小白自学 Git_Github 教程,解决分支合并冲突,笔记14
笔记·git·github
CoderJia程序员甲4 小时前
GitHub 热榜项目 - 日榜(2025-12-1)
ai·开源·llm·github·ai教程
我是李武涯7 小时前
如何修改git的commit消息
git
fruge7 小时前
Git 进阶技巧:分支管理、冲突解决、提交规范实操
大数据·git·elasticsearch
spencer_tseng8 小时前
Git-2.18.0-64-bit.exe client install
git
摇滚侠9 小时前
Idea Git 合并分支,rebase 和 merge 的区别,应该使用哪个,多人协作开发,禁止使用 rebase 合并分支
git·github
U***l8329 小时前
【Spring】IDEA中创建Spring项目
java·spring·intellij-idea
好好沉淀9 小时前
IDEA如何设置以新窗口打开新项目
linux·windows·intellij-idea
好好沉淀10 小时前
IDEA 报错:You aren‘t using a compiler supported by lombok (1分钟解决方案)
java·spring·intellij-idea