Re: Retrospectively add alternates to a repository?
- From
Tay Ray Chuan <rctay89@gmail.com>
- Date
- Feb 27, 2010, 02:37 UTC
- Message-ID
- <be6fef0d1002261837g794e8df2yc92261d46f3235bd@mail.gmail.com>
- In-Reply-To
- <loom.20100227T004822-959@post.gmane.org>
Hi,
On Sat, Feb 27, 2010 at 7:54 AM, Steve Folly <steve@spfweb.co.uk> wrote:
Show 7 quoted lines
> I have a local mirror of a remote repository (to save time > cloning over a slow network). But before I created the > local mirror I already cloned the remote repo directly. > > Is it possible to retrospectively add an alternates spec > to this local repository (the equivalent of doing what > --reference does during the clone)?
yes, just make sure the objects/info/alternates file points to the location of that cloned repo's object directory; for example:
$ echo /path/to/cloned/repo/.git/objects > .git/objects/info/alternates
-- Cheers, Ray Chuan