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

你可能感兴趣的:(git Failed to connect to 127.0.0.1 port 1080)