我使用github在push時
$ git push
Enumerating objects: 155, done.
Counting objects: 100% (155/155), done.
Delta compression using up to 8 threads
Compressing objects: 100% (114/114), done.
Writing objects: 100% (116/116), 42.22 MiB | 24.75 MiB/s, done.
Total 116 (delta 19), reused 0 (delta 0)
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date
我查了下是說推送的文件太大
下這個就行
git config --local http.postBuffer 500M
但我下了還是得到一樣的錯誤⋯⋯屢試不爽
我總共文件也才45MB不到,下了這command之後沒有理由不行吧
求救
試試看git config --global http.version HTTP/1.1
這篇的第一個答案
(你加大 buffersize 是第二個答案)