* Sharing repositories later on
@ 2006-07-12 13:28 Erik Mouw
2006-07-12 15:21 ` Junio C Hamano
2006-07-12 15:47 ` Linus Torvalds
0 siblings, 2 replies; 4+ messages in thread
From: Erik Mouw @ 2006-07-12 13:28 UTC (permalink / raw)
To: git
Hi,
I just learned out about "git clone -s" to share objects between
repositories. How do I use that with already existing repositories?
Right now I have a "linux-2.6" repository to track Linus's 2.6 kernel
tree and an "elinux-2.6" tree that pulls from linux-2.6 and holds my
own changes. I created a file .git/objects/info/alternates that
contains the line "/home/erik/git/linux-2.6/.git/objects". Now how do I
get rid of the "old" objects and packs without loosing my changes?
Erik
--
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Sharing repositories later on
2006-07-12 13:28 Sharing repositories later on Erik Mouw
@ 2006-07-12 15:21 ` Junio C Hamano
2006-07-12 15:57 ` Erik Mouw
2006-07-12 15:47 ` Linus Torvalds
1 sibling, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2006-07-12 15:21 UTC (permalink / raw)
To: Erik Mouw; +Cc: git
Erik Mouw <erik@harddisk-recovery.com> writes:
> Hi,
>
> I just learned out about "git clone -s" to share objects between
> repositories. How do I use that with already existing repositories?
>
> Right now I have a "linux-2.6" repository to track Linus's 2.6 kernel
> tree and an "elinux-2.6" tree that pulls from linux-2.6 and holds my
> own changes. I created a file .git/objects/info/alternates that
> contains the line "/home/erik/git/linux-2.6/.git/objects". Now how do I
> get rid of the "old" objects and packs without loosing my changes?
repack -a -d -l perhaps?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Sharing repositories later on
2006-07-12 13:28 Sharing repositories later on Erik Mouw
2006-07-12 15:21 ` Junio C Hamano
@ 2006-07-12 15:47 ` Linus Torvalds
1 sibling, 0 replies; 4+ messages in thread
From: Linus Torvalds @ 2006-07-12 15:47 UTC (permalink / raw)
To: Erik Mouw; +Cc: git
On Wed, 12 Jul 2006, Erik Mouw wrote:
>
> I just learned out about "git clone -s" to share objects between
> repositories. How do I use that with already existing repositories?
Do
echo "/source/git/project/.git/objects/" > .git/objects/info/alternates
and then follow it up with
git repack -a -d -l
where the "-l" means that it will only put _local_ objects in the
pack-file (strictly speaking, it will put any loose objects from the
alternate tree too, so you'll have a fully packed archive, but it won't
duplicate objects that are already packed in the alternate tree).
Linus
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Sharing repositories later on
2006-07-12 15:21 ` Junio C Hamano
@ 2006-07-12 15:57 ` Erik Mouw
0 siblings, 0 replies; 4+ messages in thread
From: Erik Mouw @ 2006-07-12 15:57 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
On Wed, Jul 12, 2006 at 08:21:28AM -0700, Junio C Hamano wrote:
> Erik Mouw <erik@harddisk-recovery.com> writes:
> > Right now I have a "linux-2.6" repository to track Linus's 2.6 kernel
> > tree and an "elinux-2.6" tree that pulls from linux-2.6 and holds my
> > own changes. I created a file .git/objects/info/alternates that
> > contains the line "/home/erik/git/linux-2.6/.git/objects". Now how do I
> > get rid of the "old" objects and packs without loosing my changes?
>
> repack -a -d -l perhaps?
Thanks, that did the trick. I now have a small pack with around 100
objects.
Erik
--
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-07-12 15:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-12 13:28 Sharing repositories later on Erik Mouw
2006-07-12 15:21 ` Junio C Hamano
2006-07-12 15:57 ` Erik Mouw
2006-07-12 15:47 ` Linus Torvalds
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).