git 推送到远程时遇到的问题

这个是sourceTree上的错误提示
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin derek:derek
POST git-receive-pack (chunked)
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: RPC failed; HTTP 411 curl 22 The requested URL returned error: 411 Length Required
Pushing to http://gitlab.gaodun.com/stat...
To http://gitlab.gaodun.com/stat...

这个是git命令行提示的错误:
Counting objects: 106, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (104/104), done.
error: RPC failed; HTTP 411 curl 22 The requested URL returned error: 411 Length Required
fatal: The remote end huWng uritip unng oexpectedly
Writing objects: 100% (106/106), 14.07 MiB | 12.65 MiB/s, done.
Total 106 (delta 20), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
Everything up-to-date

这个是什么问题呢,还请指教

阅读 5k
1 个回答

git POST 缓冲区过小.

git config http.postBuffer 524288000

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题