git push 需要很长时间 [英] git push taking ages

查看:62
本文介绍了git push 需要很长时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试推送我的 git 存储库,但这需要很长时间.

Im trying to push my git repo and it's taking a very long time.

Counting objects: 17496, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6920/6920), done.
Writing objects:  94% (16504/17496), 44.43 MiB | 103.00 KiB/s

它已经坐 16504/17496 30 分钟了.如果它只是需要时间,我很乐意离开它,但考虑到它在不到 2 分钟内达到 94%,我担心有些东西坏了.

It's been sitting 16504/17496 for 30 minutes now. If it just needs time I'm happy to leave it but considering it got to 94% in less than 2 minutes I'm concerned something is broken.

我该怎么办?

附言这只是一个非常基本的 magento 安装,没有媒体.

P.S. It's just a very basic magento installation with no media.

推荐答案

这可能会发生

  • 如果存储库中有大的未被忽略的文件.
  • 如果 http.postBuffer 的大小非常小.您可以使用 git config --global http.postBuffer 更改大小.这是将数据发布到远程系统时智能 HTTP 传输使用的缓冲区的最大大小(以字节为单位).
  • If there are large unignored files in the repo.
  • If the http.postBuffer size is very less. You can change the size using git config --global http.postBuffer <size>. This is the Maximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system.

这也可能有帮助,看看它:远程端在 git 克隆时意外挂断

This might also help, have a look at it: The remote end hung up unexpectedly while git cloning

这篇关于git push 需要很长时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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