问题描述
git push
命令对我不起作用。
首先我尝试了 $ git push -u origin master
:
Enumerating objects: 416,done.
Counting objects: 100% (416/416),done.
Delta compression using up to 4 threads
Compressing objects: 100% (214/214),done.
Writing objects: 100% (416/416),36.52 MiB | 159.14 MiB/s,done.
Total 416 (delta 200),reused 416 (delta 200),pack-reused 0
error: RPC Failed; curl 18 transfer closed with outstanding read data remaining
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date
我试过git config --global http.postBuffer 524288000
:
$ git status
On branch master
nothing to commit,working tree clean
为什么我无法让 git push
工作?
解决方法
将 Git 缓冲区大小增加到存储库的最大单个文件大小:
git config --global http.postBuffer