ios – Git克隆在MAC OSX 10.12上接收对象时挂起

前端之家收集整理的这篇文章主要介绍了ios – Git克隆在MAC OSX 10.12上接收对象时挂起前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我试图在mac osx 10.12上设置 Cocoapods,我试图在终端中执行此命令它挂在接收对象上: –
  1. cd ~/.cocoapods/repos
  2. GIT_TRACE=1; GIT_CURL_VERBOSE=1 git clone http://github.com/CocoaPods/Specs.git master --verbose

这是终端输出: –

  1. Cloning into 'master'...
  2. * Couldn't find host github.com in the .netrc file; using defaults
  3. * Trying 192.30.253.112...
  4. * Connected to github.com (192.30.253.112) port 80 (#0)
  5. > GET /CocoaPods/Specs.git/info/refs?service=git-upload-pack HTTP/1.1
  6. Host: github.com
  7. User-Agent: git/2.7.4 (Apple Git-66)
  8. Accept: */*
  9. Accept-Encoding: gzip
  10. Pragma: no-cache
  11.  
  12. < HTTP/1.1 301 Moved Permanently
  13. < Content-length: 0
  14. < Location: https://github.com/CocoaPods/Specs.git/info/refs?service=git-upload-pack
  15. < Connection: close
  16. <
  17. * Closing connection 0
  18. * Issue another request to this URL: 'https://github.com/CocoaPods/Specs.git/info/refs?service=git-upload-pack'
  19. * Couldn't find host github.com in the .netrc file; using defaults
  20. * Trying 192.30.253.112...
  21. * Connected to github.com (192.30.253.112) port 443 (#1)
  22. * TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
  23. * Server certificate: github.com
  24. * Server certificate: DigiCert SHA2 Extended Validation Server CA
  25. * Server certificate: DigiCert High Assurance EV Root CA
  26. > GET /CocoaPods/Specs.git/info/refs?service=git-upload-pack HTTP/1.1
  27. Host: github.com
  28. User-Agent: git/2.7.4 (Apple Git-66)
  29. Accept: */*
  30. Accept-Encoding: gzip
  31. Pragma: no-cache
  32.  
  33. < HTTP/1.1 200 OK
  34. < Server: GitHub Babel 2.0
  35. < Content-Type: application/x-git-upload-pack-advertisement
  36. < Transfer-Encoding: chunked
  37. < Expires: Fri,01 Jan 1980 00:00:00 GMT
  38. < Pragma: no-cache
  39. < Cache-Control: no-cache,max-age=0,must-revalidate
  40. < Vary: Accept-Encoding
  41. < X-GitHub-Request-Id: 69EEB048:2D36F:6AF964:57888CD0
  42. < X-Frame-Options: DENY
  43. <
  44. * Connection #1 to host github.com left intact
  45. POST git-upload-pack (305 bytes)
  46. * Couldn't find host github.com in the .netrc file; using defaults
  47. * Found bundle for host github.com: 0x7fc3d750be30
  48. * Re-using existing connection! (#1) with host github.com
  49. * Connected to github.com (192.30.253.112) port 443 (#1)
  50. > POST /CocoaPods/Specs.git/git-upload-pack HTTP/1.1
  51. Host: github.com
  52. User-Agent: git/2.7.4 (Apple Git-66)
  53. Accept-Encoding: gzip
  54. Content-Type: application/x-git-upload-pack-request
  55. Accept: application/x-git-upload-pack-result
  56. Content-Length: 305
  57.  
  58. * upload completely sent off: 305 out of 305 bytes
  59. < HTTP/1.1 200 OK
  60. < Server: GitHub Babel 2.0
  61. < Content-Type: application/x-git-upload-pack-result
  62. < Transfer-Encoding: chunked
  63. < Expires: Fri,must-revalidate
  64. < Vary: Accept-Encoding
  65. < X-GitHub-Request-Id: 69EEB048:2D36F:6AFF66:57888CD9
  66. < X-Frame-Options: DENY
  67. <
  68. remote: Counting objects: 747987,done.
  69. remote: Compressing objects: 100% (17/17),done.
  70. Receiving objects: 1% (10862/747987),2.16 MiB | 437.00 KiB/s

我在这里看到了关于这个问题的其他问题,遗憾的是没有解决方案.

更新: –

一段时间后,终端显示错误: –

  1. * SSLRead() return error -9806/747987),2.16 MiB | 437.00 KiB/s
  2. * Closing connection 1
  3. error: RPC Failed; curl 56 SSLRead() return error -9806
  4. fatal: The remote end hung up unexpectedly
  5. fatal: early EOF
  6. fatal: index-pack Failed`

解决方法

See this answer.

VMware on NAT had this problem for me. Changing it to Bridged (replicate the state) fixed the issue.

猜你在找的iOS相关文章