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

Local cache for git objects

From
BGBartosz Gęza <bartoszgeza@gmail.com>
Date
May 17, 2012, 20:06 UTC
Message-ID
<CALnNMuHdNFktUkp+Vdc=ooTJ9ay_BJftAJ_toVaBDA5EOzt9ww@mail.gmail.com>

I'd like to speed up fetching objects from remote repositiories when creating multiple clones on one or more machines in LAN.

I know it can be done by hand: git-fetch once and git-clone from local copy. I think about adding new capability to upload-pack which would allow making relay and object store. Client would supply url where "want"-ed objects should be available.

Next I'd add config option for git-fetch with url of this cache. fetch-pack would get refs from remote and request objects from cache.

I'm not sure if this hasn't been done. Would such feature be included in git?

Next: Bartosz Gęza
Message 1 of 4 in “Local cache for git objects”
  1. Bartosz GęzaMay 17, 2012
  2. Bartosz GęzaMay 17, 2012
  3. Junio C HamanoMay 17, 2012
  4. Bartosz GęzaMay 17, 2012

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.