錯誤內容:
error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
我感覺出現這個錯誤的主要原因可能是校園網網速太慢,我今天就跟這個github包杠上了,不信我下載不下來,我不是主要學網絡這方面的,所以就是用網上的辦法,一個一個試
首先解決Git的問題
解決辦法
1.
首先執行
git config http.sslVerify "false"
若出現下列錯誤
git config http.sslVerify "false" fatal: not in a git directory
再繼續執行
git config --globle http.sslVerify "false"
問題解決
git config --global pack.windowMemory "100m"
git config --global pack.SizeLimit "100m"
git config --global pack.threads "1"
git config --global pack.window "0"
試過這兩種方法,還是不行,所以使用下載壓縮包的辦法
壓縮包下載失敗
采用修改hosts的方法
在http://tool.chinaz.com/中使用DNS查詢
59.24.3.173 github.global.ssl.fastly.net
151.101.24.133 assets-cdn.github.com
151.101.76.133 avatars0.githubusercontent.com
151.101.108.133 avatars1.githubusercontent.com
52.74.223.119 http://github.com
140.82.114.4 http://github.com
有一點點效果,但還是失敗
在host中添加如下代碼
# GitHub Start
140.82.114.4 github.com
192.30.255.119 gist.github.com
185.199.110.153 assets-cdn.github.com
151.101.228.133 raw.githubusercontent.com
151.101.228.133 gist.githubusercontent.com
151.101.228.133 cloud.githubusercontent.com
151.101.228.133 camo.githubusercontent.com
151.101.228.133 avatars0.githubusercontent.com
151.101.228.133 avatars1.githubusercontent.com
151.101.228.133 avatars2.githubusercontent.com
151.101.228.133 avatars3.githubusercontent.com
151.101.228.133 avatars4.githubusercontent.com
151.101.228.133 avatars5.githubusercontent.com
151.101.228.133 avatars6.githubusercontent.com
151.101.228.133 avatars7.githubusercontent.com
151.101.228.133 avatars8.githubusercontent.com
185.199.109.154 github.githubassets.com
151.101.109.194 github.global.ssl.fastly.net
# GitHub End
經過昨天晚上的測試,還是不行,卧談會聽取舍友建議,采用間接的辦法
注冊碼雲,將github中的倉庫導入到碼雲中,通過碼雲拉去代碼
問題解決
這么簡單,昨天整了一晚上,發出來大家碰到相似問題參考吧