问题:
今天在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中的一致。
[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