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

Re: how to union 2 repos

From
Johannes Sixt <j.sixt@viscovery.net>
Date
May 26, 2008, 11:10 UTC
Message-ID
<483A9AB2.706@viscovery.net>
In-Reply-To
<1211796504.20622.26.camel@bee.datamax.bg>
Jamil Djadala schrieb:
Show 13 quoted lines
> i have 2 repos with history, assuming initial commit in both repos are
> same:
> 
> 1:
> a-b-c-d-e-f
> 2:
> a-B-C-D-E-F
> 
> 
> i want repository with this history:
> 
> a-b-c-d-e-f
>  \B-C-D-E-F

$ git fetch ../other master:otherMaster $ echo $B $a > .git/info/grafts $ git filter-branch -- --all

The man page of git-filter-branch mentions the grafts trick.
-- Hannes
Previous: Jamil Djadala
Message 2 of 2 in “how to union 2 repos”
  1. Jamil DjadalaMay 26, 2008
  2. Johannes SixtMay 26, 2008

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.