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

相关推荐
摇滚侠1 天前
帮我整理一份 IDEA 开发中常用快捷键
java·ide·intellij-idea
金融Tech趋势派1 天前
OpenClaw火了,AI Agent下一步走向哪里?
人工智能·github·企业微信·openclaw·企微管家claw
琉璃榴2 天前
Visual Studio Code连接远程服务器
服务器·vscode·github
darkb1rd2 天前
wterm:Web 终端实战指南,WASM 赋能近原生体验
开源·github·好物分享
打不了嗝 ᥬ᭄2 天前
Git 原理与使用
git·gitee
梦魇星虹2 天前
idea Cannot find declaration to go to
java·ide·intellij-idea
xifangge20252 天前
【故障排查】IDEA 打开 Java 文件没有运行按钮(Run)?深度解析项目标识与环境配置的 3 大底层坑点
java·ide·intellij-idea
范什么特西2 天前
idea创建一个普通的Maven项目运行javaweb
java·maven·intellij-idea
学习使我健康2 天前
MVP模式
android·github·软件工程
m0_614619062 天前
花了一下午学 Git,整理了一份学习笔记
笔记·git·学习