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

Re: Local cache for git objects

From
BGBartosz Gęza <bartoszgeza@gmail.com>
Date
May 17, 2012, 20:36 UTC
Message-ID
<CALnNMuE=YQsXK-kiRUntNU_0s7s6ONgBk92dZN4UD0Va+qqF+Q@mail.gmail.com>
In-Reply-To
<1337285744-ner-2739@calvin>

On Thu, May 17, 2012 at 10:15 PM, Tomas Carnecky <tomas.carnecky@gmail.com> wrote:

> On Thu, 17 May 2012 22:06:51 +0200, Bartosz Gęza <bartoszgeza@gmail.com> wrote:
>> I'd like to speed up fetching objects from remote repositiories when creating
>> multiple clones on one or more machines in LAN.
> Does git clone --reference do what you want?

I didn't know about --reference, but that's not it. I've tried it just now:

$ git init --bare reference.git Initialized empty Git repository in /.../reference.git $ git clone --reference ./reference.git/ git://someurl/foo.git foo Cloning into 'foo'... [...] (fetches whole pack) $ git clone --reference ./reference.git/ git://someurl/foo.git foo2 Cloning into 'foo2'... [...] (fetches whole pack again)

Reference is read only (?) I'd like to set up one global cache repository and forget. Later as I fetch any objects they are stored there for fast future access.

Previous: Bartosz GęzaNext: Junio C Hamano
Message 2 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.