git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Sharing repositories later on

From
EMErik Mouw <erik@harddisk-recovery.com>
Date
Jul 12, 2006, 13:28 UTC
Message-ID
<20060712132800.GA7328@harddisk-recovery.com>
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
Next: Junio C Hamano
Message 1 of 4 in “Sharing repositories later on”
  1. Erik MouwJul 12, 2006
  2. Junio C HamanoJul 12, 2006
  3. Erik MouwJul 12, 2006
  4. Linus TorvaldsJul 12, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.