解决git push提交卡主异常问题

目录

Git: fatal: The remote end hung up unexpectedly solution

solution 1: use command

solution 2: modify the profile

hung up solution:


Git: fatal: The remote end hung up unexpectedly solution

在我们执行git push时可能会碰到下面这个的情况

Counting objects: 61350, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (20587/20587), done.
efatal: The remote end hung up unexpecterror: RPC failed; HTTP 413 curl 22 The requested U
RL returned error: 413 Request Entity Too Large
dly
Writing objects: 100% (61350/61350), 4.32 GiB | 657.00 KiB/s, done.
Total 61350 (delta 39636), reused 59367 (delta 37653)
fatal: The remote end hung up unexpectedly
Everything up-to-date

我们可以用下面两个解决方案来处理

solution 1: use command

git config --global http.postBuffer 524288000

# some comments below report having to double the value:

git config --global http.postBuffer 1048576000

solution 2: modify the profile

.git/config 文件中加入

[http]
postBuffer = 524288000

hung up solution:

执行上面的方案后我们也可能会碰到没有报hung up 错误, 但一直卡主问题, 如下:

解决方案是:

添加sendpack.sideband属性并置为false

全局的:git config –global sendpack.sideband false

仓库的:git config –local sendpack.sideband false

然后提交, 如果还是没用. 可以先执行git pull虽然当前明明已经是up-to-date, 然后git push

 

 

  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值