git not resuming push

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

git not resuming push

From: Paul Brossier <hidden>
Date: 2016-06-15 22:52:31

Hi!

I'm trying to upload large amount of data from a connection that often
cuts.

If the connection fails after uploading part of the data, it seems I
need to start over from zero again. Is there a way to resume the upload
instead?

Here is an example:

$ git push
Counting objects: 504, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (475/475), done.
Write failed: Broken pipe1/476), 533.78 MiB | 60 KiB/s
fatal: The remote end hung up unexpectedly
error: pack-objects died of signal 13
error: failed to push some refs to 'myhost.org:/git/myrepo/'

$ git push
Counting objects: 504, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (475/475), done.
Writing objects:  12% (61/476), 89.34 MiB | 23 KiB/s

Thanks, piem

Re: git not resuming push

From: Jeff King <hidden>
Date: 2016-06-15 22:52:31

On Tue, Nov 22, 2011 at 08:58:56PM -0700, Paul Brossier wrote:
If the connection fails after uploading part of the data, it seems I
need to start over from zero again. Is there a way to resume the upload
instead?
No, there isn't a way to resume just using push.

If you have shell access on the server, one workaround you can do is to
create a bundle with the commits in question, upload it via some
resumable protocol (like sftp, http, rsync, etc), possibly taking many
attempts, and then fetch the result on the server side from the bundle
into the repository.

See "git help bundle" for some examples.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help