Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Local cache for git objects

From: Bartosz Gęza <hidden>
Date: 2016-06-15 22:53:50

On Thu, May 17, 2012 at 10:15 PM, Tomas Carnecky
[off-list ref] wrote:
On Thu, 17 May 2012 22:06:51 +0200, Bartosz Gęza [off-list ref] wrote:
quoted
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help