From: Tay Ray Chuan Date: Sat, 27 Feb 2010 02:37:25 GMT Subject: Re: Retrospectively add alternates to a repository? Message-ID: In-Reply-To: Hi, On Sat, Feb 27, 2010 at 7:54 AM, Steve Folly wrote: > 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