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

查看:246
本文介绍了javascript - 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

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

解决方案

git POST 缓冲区过小.

git config http.postBuffer 524288000

这篇关于javascript - git 推送到远程时遇到的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆