代理导致的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

相关推荐
lida200318 分钟前
ArduPilot开源代码之AP_OSD
git·开源·ardupilot
Hamm3 小时前
咦,你的Git仓库贡献者里怎么有这么多大佬???
前端·git·github
钢板兽4 小时前
Java后端高频面经——JVM、Linux、Git、Docker
java·linux·jvm·git·后端·docker·面试
D-river5 小时前
【Recon】Git源代码泄露题目解题方法
git·安全·网络安全
努力学习的小廉6 小时前
深入了解Linux —— git三板斧
linux·运维·git
抱抱宝10 小时前
Git与GitHub:理解两者差异及其关系
git·github
阿梦Anmory19 小时前
git本地仓库链接远程仓库
git
黄同学real19 小时前
如何下载和使用Git:初学者指南
git
邵奈一1 天前
git报错:error: RPC failed; curl 16 Error in the HTTP2 framing layer
git·网络协议·rpc
云纳星辰怀自在1 天前
Git系列之git tag和Release&Milestone
git