Re: Sharing repositories later on

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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
-
: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]