DEV Community

Cover image for How to speed up GIT PUSH
SMJ
SMJ

Posted on

How to speed up GIT PUSH

OS: Windows10
Shell: git bash
Platform: GitHub
Protocol: ssh

Can anyone help me with Git Push Speed? I have 7 MB/S connection but push and pull are at 90-110 KB/S. It take hours to push and I got this error:

fatal: remote end hung up unexpectedly
Enter fullscreen mode Exit fullscreen mode

Thanks in advance.

Top comments (5)

Collapse
 
sebbdk profile image
Sebastian Vargr

Sounds really odd, i need a bit more info.

How big is the repo?
Do you include binaries in these commits?
What does the output look like if you do a push with the --verbose option?

Most commits are just a few hundred kb worth of text at most i believe.
So even at the mentioned speeds i would expect a fast push, as in seconds.

Collapse
 
baddate profile image
SMJ

It contents some pdf files(100MB)
I didn't use --verbose option yet.
By the way, is the speed related to the size of repo?

Collapse
 
sebbdk profile image
Sebastian Vargr • Edited

Speed is not related to the size of the repo, but it is a good indicator of whether or not it contains binaries. :)

Git is not really made for binaries, so i am not surprised about the slow speeds you get.

I believe Github even have a 1-2gb size limit on repositories.
For binaries it is common to use something like: git-lfs.github.com/

Have you done a speed-check on your connection?

In my experience, ISP's often sell the connections as "up to mb/s" but the reality is often a lot less.

Thread Thread
 
baddate profile image
SMJ

Thanks a lot. I'll try the LFS

Collapse
 
michthebrandofficial profile image
michTheBrandofficial

I am facing the same error now and it has been going on for days. My network speed 5mb/s but still not working. You mentioned that your OS is Windows. I think that may be the problem, 'cuz I read that in an article recently and I am also using the same OS. But try typing in the terminal

git config ssh.postBuffer 524288000
Enter fullscreen mode Exit fullscreen mode