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克隆即可。

相关推荐
OpenTiny社区4 小时前
🎨 看完 GenUI SDK 源码我悟了!
前端·vue.js·github
叫我少年7 小时前
Windows 中安装 git
git
千寻girling8 小时前
一份不可多得的《微服务》教程
后端·面试·github
霜落长河10 小时前
用Gemini提升React代码调试效率的教程
github
英勇无比的消炎药12 小时前
TinyRobot 源码深度分析:OpenTiny 的 AI 对话组件库
前端·vue.js·github
逛逛GitHub1 天前
慢慢吃掉你的 Claude Code,在终端里养一只黑洞。
github
jump_jump1 天前
为了重玩金庸群侠传,我研究了一下 Ruffle 怎么复活 Flash
游戏·rust·github
LinXunFeng2 天前
Obsidian - 使用 Share Note 分享笔记并自部署
前端·笔记·github
DayDaydream2 天前
7 天涨了 8000+ Star,Agent Reach 想给 AI 装上互联网眼睛
github
天衍四九3 天前
Git从0到实战(四):冲突解决与版本回退 —— 别怕,出错了也能救
github