1

I'm pushing a repo that's about 100mb in size. Unfortunately I have to use WiFi on my PC upstairs, and my upload speed is around 10mbps, or 1.25MB/s. Slow, but manageable. Or, it would be if it was consistent.

However, when I git push over either HTTPS or SSH, it goes like this: https://del.dog/cecaghygru.txt

As you can see it ranges anywhere from 1.1MiB/s to 43KiB/s. In about 15 seconds it only got about 20 objects uploaded out of ~600k. I get that that's a large amount, and this is the first time pushing, so the whole repo is being pushed to Git, but why does the speed fluctuate so much? Is there anything I can do to improve the speed of git push?

(Also, I'm not sure why it says "Sending approximately 1.53 GiB ..." when the folder containing my repo is definitly not that size).

NateDev
  • 141
  • 5
  • 14

1 Answers1

0

Depending on where you are pushing your Git repository to, you might consider making a bundle, and copying that one file (bundle) to a workstation closer to your remote repo target.

You can also look at the content of your local repository to identify large objects and see if they could be removed.

Finally, make sure you are using the latest Git 2.28, as it includes many optimizations.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Yes, I am using Git 2.28. Unfortunately I can't remove anything from the repo. I tried making a bundle, however it still for some reason uses the network and displays essentially the same log as when using git push. Is it because of other remotes? – NateDev Sep 10 '20 at 21:24
  • @NateDev The bundle is just an option to copy over the repository to the target, as one file, from which you can fetch. – VonC Sep 10 '20 at 21:27
  • Yeah, I mean when I'm creating the bundle is when it displays the same log - it's just supposed to create a file on my PC I can transfer and use on another PC (the one with better internet). Here's my command and the output (which is the same as git push) https://del.dog/ihemonullo.txt. Thanks – NateDev Sep 10 '20 at 21:37
  • I would create the bundle outside the repository: ../my bundle – VonC Sep 10 '20 at 22:03