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

Re: Copying files and keeping the history

From
Avery Pennarun <apenwarr@gmail.com>
Date
Jun 12, 2009, 03:44 UTC
Message-ID
<32541b130906112044m7cf2c0e9s2ba4815a31e534a@mail.gmail.com>
In-Reply-To
<fabb9a1e0906111129x53a6d90p15a97d958a2d2f63@mail.gmail.com>
On Thu, Jun 11, 2009 at 2:29 PM, Sverre Rabbelier<srabbelier@gmail.com> wrote:
Show 7 quoted lines
> On Thu, Jun 11, 2009 at 15:20, JörgenHägg<jorgen.hagg@axis.com> wrote:
>> Is this somehow possible?
>
> Try git filter-branch to get just the commits you want and nudge them
> to contain what you want (do this in a seperate branch/copy of
> repository A). When you're done, pull the branch into B and merge it.
> Instant win?

You could also consider 'git subtree' (http://github.com/apenwarr/git-subtree) to merge the other tree (including its history) in as a subdirectory.

Avery
Previous: Sverre Rabbelier
Message 3 of 3 in “Copying files and keeping the history”
  1. JörgenHäggJun 11, 2009
  2. Sverre RabbelierJun 11, 2009
  3. Avery PennarunJun 12, 2009

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.