git Failed to connect to 127.0.

2021-04-16  本文已影响0人  Theshy
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
上一篇 下一篇

猜你喜欢

热点阅读