git Failed to connect to 127.0.0.1 port 1080

Cloning `https://github.com/CocoaPods/pod-template.git` into `SQOCSWIFT`.
[!] /usr/bin/git clone https://github.com/CocoaPods/pod-template.git SQOCSWIFT

Cloning into 'SQOCSWIFT'...
fatal: unable to access 'https://github.com/CocoaPods/pod-template.git/': Failed to connect to 127.0.0.1 port 1080: Connection refused

查看git配置 git config -l

http.lowspeedlimit=0
http.lowspeedtime=999999
https.postbuffer=542428800
http.https://github.com.proxy=socks5://127.0.0.1:1080

1080端口改为 自己科学上网配置的端口即可

git config --global http.https://github.com.proxy socks5://127.0.0.1:7890
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容