当我尝试使用git从谷歌克隆webRTC包时,会发生这种情况。我该怎么办?
Shyamals-iMac:~ shyamalchandra$ GIT_CURL_VERBOSE=1 git clone https://chromium.googlesource.com/external/webrtc Cloning into 'webrtc'...
* Couldn't find host chromium.googlesource.com in the .netrc file; using defaults
* Trying 74.125.124.82...
* TCP_NODELAY set
* Connected to chromium.googlesource.com (74.125.124.82) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /usr/local/etc/openssl/cert.pem CApath: /usr/local/etc/openssl/certs
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use http/1.1
* Server certificate:
* subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=*.googlecode.com
* start date: Aug 8 13:12:55 2017 GMT
* expire date: Oct 31 12:40:00 2017 GMT
* subjectAltName: host "chromium.googlesource.com" matched cert's "*.googlesource.com"
* issuer: C=US; O=Google Inc; CN=Google Internet Authority G2
* SSL certificate verify ok.
> GET /external/webrtc/info/refs?service=git-upload-pack HTTP/1.1 Host: chromium.googlesource.com User-Agent: git/2.13.1 Accept: */* Accept-Encoding: gzip Pragma: no-cache
< HTTP/1.1 200 OK < Cache-Control: no-cache, max-age=0, must-revalidate < Content-Encoding: gzip < Content-Type: application/x-git-upload-pack-advertisement < Expires: Fri, 01 Jan 1980 00:00:00 GMT < Pragma: no-cache < Strict-Transport-Security: max-age=31536000; includeSubDomains; preload < X-Content-Type-Options: nosniff < X-Frame-Options: SAMEORIGIN < X-Xss-Protection: 1; mode=block < Date: Tue, 22 Aug 2017 12:47:39 GMT < Alt-Svc: quic=":443"; ma=2592000; v="39,38,37,35" < Transfer-Encoding: chunked <
* Connection #0 to host chromium.googlesource.com left intact
* Couldn't find host chromium.googlesource.com in the .netrc file; using defaults
* Found bundle for host chromium.googlesource.com: 0x7f9483c28930 [can pipeline]
* Re-using existing connection! (#0) with host chromium.googlesource.com
* Connected to chromium.googlesource.com (74.125.124.82) port 443 (#0)
> POST /external/webrtc/git-upload-pack HTTP/1.1 Host: chromium.googlesource.com User-Agent: git/2.13.1 Accept-Encoding: gzip Content-Type: application/x-git-upload-pack-request Accept: application/x-git-upload-pack-result Content-Length: 191
* upload completely sent off: 191 out of 191 bytes < HTTP/1.1 200 OK < Cache-Control: no-cache, max-age=0, must-revalidate < Content-Type: application/x-git-upload-pack-result < Expires: Fri, 01 Jan 1980 00:00:00 GMT < Pragma: no-cache < Strict-Transport-Security: max-age=31536000; includeSubDomains; preload < X-Content-Type-Options: nosniff < X-Frame-Options: SAMEORIGIN < X-Xss-Protection: 1; mode=block < Date: Tue, 22 Aug 2017 12:47:39 GMT < Transfer-Encoding: chunked < Alt-Svc: quic=":443"; ma=2592000; v="39,38,37,35" < remote: Sending approximately 148.48 MiB ... remote: Counting objects: 5630, done remote: Finding sources: 100% (69/69)
* OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
* Closing connection 0 error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 54 fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed
我已经尝试了以下内容:
git config --global http.postBuffer 524288000
git config --global http.maxRequestBuffer 100M
git config --global core.compression 0
有什么想法吗?
答案 0 :(得分:0)
尝试使用vi~.netrc打开.netrc文件,该文件应位于您的主目录中,并且可能为空。
然后添加以下内容: `机器github.com 登录technoweenie 密码SECRET
机器api.github.com 登录technoweenie 密码SECRET
您可以输入原始密码,但为了安全起见,请在https://help.github.com/articles/creating-an-access-token-for-command-line-use生成密码令牌,并使用它代替您的密码。