問題描述
PS E:\School Life\University\School\Sourse\Zstuca> git push -u origin master
Enumerating objects: 570, done.
Counting objects: 100% (570/570), done.
Delta compression using up to 8 threads
Compressing objects: 100% (547/547), done.
error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
fatal: the remote end hung up unexpectedly | 43.00 KiB/s
Writing objects: 100% (570/570), 54.13 MiB | 268.00 KiB/s, done.
Total 570 (delta 57), reused 0 (delta 0)
fatal: the remote end hung up unexpectedly
Everything up-to-date
問題分析
原因:上傳的文件太大,緩存不夠,默認只有1M
解決方法:將緩存改爲500M
另:可能是網絡問題。
解決方法:科學上網(不詳細贅述),或者換個網絡
解決方案
將緩存改爲500M
git config http.postBuffer 524288000
524288000算法:
1024*1024*500
對於curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL
git config http.sslVerify "false"
作用:忽略證書錯誤
點評:設置限定在指定的倉庫,避免擴大該設置的適用範圍而引起的潛在安全風險。
參考文章
http://www.wangxianfeng.cn/wordpress/2018/07/14/git使用過程中常見錯誤解決/