代理导致的git错误

问题:

今天在clone时出现如下错误:

复制代码
fatal: unable to access 'https://github.com/NirDiamant/RAG_Techniques.git/': Failed to connect to 127.0.0.1 port 10089 after 2065 ms: Couldn't connect to server

真是让人感到奇怪!就在前天,我明明运行过git命令,一切都显得正常,怎么现在却出现了错误呢?根据系统给出的提示信息来看,问题似乎出在代理设置上。昨天升级了v2rayN,端口默认了。

解决:

直接修改git配置文件,该文件一般在C:\Users\gaobo\.gitconfig, 将端口修改的与v2rayN中的一致。

bash 复制代码
[credential "https://gitee.com"]
provider = generic
[http]
proxy = socks5://127.0.0.1:10808
proxy = http://127.0.0.1:10809
[https]
proxy = socks5://127.0.0.1:10808
proxy = https://127.0.0.1:10809
[filter "lfs"]
	clean = git-lfs clean -- %f
	smudge = git-lfs smudge -- %f
	process = git-lfs filter-process
	required = true

OK

相关推荐
czhc114007566310 小时前
6.11:halcon,Sqlserver;项目sql连接;git
git·sql·sqlserver
炸炸鱼.11 小时前
Git+Jenkins 基本使用:从入门到实战(知识点大全)
运维·git·jenkins
戴国进13 小时前
git stash 用法详解
git
木雷双雄713 小时前
Git 版本回退操作指南
git
m0_579146651 天前
已被 Git 追踪的本地修改文件如何实现临时忽略
git
糖少主1 天前
WSL中使用Beyond Compare 3/4/5作为difftool
git·wsl·beyond compare·difftool
console.log('npc')1 天前
Git版本管控:git reset \+ git push \-f 原理、实操与避坑指南
git
恋喵大鲤鱼1 天前
git reflog
git·git reflog
MatrixOrigin1 天前
MatrixOne Git4Data 技术详解(二):从零跑通所有 Git 原语
git
anew___1 天前
常用的 Git 工作流
git