美文网首页
git 遇到问题

git 遇到问题

作者: 魔力双鱼 | 来源:发表于2019-06-06 15:12 被阅读0次

1.

git clone fatal: unable to access 'https://github.com/carlon/demo.git/': Failed to connect to github.com port 443: Timed out

$ git config --global http.proxy

$ git config --global --unset http.proxy

设置代理,之后就可以 执行Git clone了

2.

setup 过程中如果出现

error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

在你的Finder中进入到 /Users/abc/.cocoapods/repos/master,删掉master文件,再执行

git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master

命令应该就可以了。

相关文章

网友评论

      本文标题:git 遇到问题

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