git 备忘笔记

Created: Dec. 6, 2017, 11:33 a.m. Updated: June 4, 2018, 5:35 p.m.

git push 时 error: RPC failed; HTTP 411 问题

$ git push
Counting objects: 382, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (331/331), done.
error: RPC failed; HTTP 411 curl 22 The requested URL returned error: 411
Length Required
fatal: The remote end hung up unexpectedly
Writing objects: 100% (382/382), 28.95 MiB | 6.56 MiB/s, done.
Total 382 (delta 79), reused 57 (delta 0)
fatal: The remote end hung up unexpectedly
Everything up-to-date

设置post的大小为500m

git config http.postBuffer 524288000