美文网首页
git Failed to connect to 127.0.

git Failed to connect to 127.0.

作者: Theshy | 来源:发表于2021-04-16 11:43 被阅读0次
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

相关文章

网友评论

      本文标题:git Failed to connect to 127.0.

      本文链接:https://www.haomeiwen.com/subject/trqelltx.html