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

相关推荐
yyuuuzz2 小时前
aws亚马逊入门常见认知误区
运维·服务器·网络·云计算·github·aws
___波子 Pro Max.5 小时前
Git Remote 仓库地址变更
git
逛逛GitHub7 小时前
你的 Mac 就是一个 AI Agent,4B 模型本地操控电脑。
github
铁皮哥9 小时前
【后端/Agent 开发】给你的项目配置一套 .claude/ 工作流:别再裸用 Claude Code 了!
java·windows·python·spring·github·maven·生活
乐之者v9 小时前
AI编程 -- codex添加代码,在intellij Idea中没有显示,如何处理?
java·ide·intellij-idea
ModestCoder_9 小时前
Git 忽略所有 `.xlsx`,但保留指定 Excel 文件的方法
git·excel
阡陌..11 小时前
202605新版git_2.54.0常用操作指令
大数据·git·elasticsearch
Resistance丶未来11 小时前
Agency-Agents 多智能体协作系统落地指南
python·大模型·nlp·github·copilot·claude·gemini
輕華11 小时前
YOLOv5 实战:从 GitHub 拉取到自定义数据集训练
yolo·github
会笑的小熊11 小时前
VScode项目推送到git仓库
ide·git·vscode