Re: Question about .git/objects/info/alternates
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Mar 23, 2010, 02:42 UTC
- Message-ID
- <20100323024223.GA12257@progeny.tock>
- In-Reply-To
- <a038bef51003221026i379ee16ej6e0e6defcf0048dd@mail.gmail.com>
Chris Packham wrote:
> I would like to have base somehow find the objects it doesn't have in > its object store and either download them or just copy them from the > object store of projecta.
[...]
> From reading [2] I think 'rm > .git/objects/info/alternates && git repack -a' might do the trick but > I'm not sure.
Almost. Try ‘git repack -a && rm .git/objects/info/alternates’ instead. :)
(Please back up the repository or try with something less important first, since I am not sure.)
Hope that helps, Jonathan
> [2] http://stackoverflow.com/questions/2248228/how-to-detach-alternates-after-git-clone-reference