> 技术文档 > 将github的项目克隆到本地时报错:fatal: unable to access ‘https://‘

将github的项目克隆到本地时报错:fatal: unable to access ‘https://‘

跟着完美解决 git 报错 “fatal: unable to access ‘https://github.com/.../.git‘: Recv failure Connection was rese-CSDN博客操作的时候,把系统的端口改了,后面又看到亲身经历!!解决fatal: unable to access ‘https://~.git/‘: Failed to connect to github.com ····-CSDN博客

但是已经忘了原来的端口号是多少了,于是想到自己开了clash的系统代理,找到端口号,把系统中的端口号改成和clash设置中一致。

再按照原链接中的操作更改:

git config --global http.proxy http://127.0.0.1:7897

查看更改是否成功:

git config --global -l

结果:

这样以后再git clone就能正常克隆到本地了。