git/list[1] front-page[2] threads[3] people[4] search[5] about
 

incremental push/pull for large repositories

From
EWEnrico Weigelt <weigelt@metux.de>
Date
Jul 10, 2010, 03:12 UTC
Message-ID
<20100710031258.GA554@nibiru.local>
Hi folks,

I often have situations where I've rebased branches with large files (10th of megabytes per file) and pushing them to the remote. Normally these files themselves stay untouched, but the history changes (eg. commits reordered, several changes in smaller files,etc).

It seem that on each push, the whole branch is transferred, including all the large files, which already exist on the remote site. Is there any way to prevent this ?

IMHO it would be enough having a negotiation on which objects really have to be transferred before creating and transmitting the actual pack file. That would save _much_ traffic (and transmit time) for those situations.

This could also be used to remotely repair broken repositories: just repack leaving off the broken objects and fetch the missing ones from remotes.

cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------
Next: Avery Pennarun
Message 1 of 2 in “incremental push/pull for large repositories”
  1. Enrico WeigeltJul 10, 2010
  2. Avery PennarunJul 12, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.