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

Re: Sharing repositories later on

From
Junio C Hamano <junkio@cox.net>
Date
Jul 12, 2006, 15:21 UTC
Message-ID
<7vpsgazw5j.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060712132800.GA7328@harddisk-recovery.com>
Erik Mouw <erik@harddisk-recovery.com> writes:
Show 10 quoted lines
> 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?
Previous: Erik MouwNext: Erik Mouw
Message 2 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.