Re: Merging repositories and their histories
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Aug 18, 2008, 17:35 UTC
- Message-ID
- <20080818173511.GC6014@blimp.local>
- In-Reply-To
- <19035412.post@talk.nabble.com>
Peter Waller, Mon, Aug 18, 2008 18:46:14 +0200:
Show 6 quoted lines
>
> I have three repositories, A, B and C. I wish to bring them together to only
> one repository (.), where they are in a directory called ./Archive, so..
> ./Archive/{A,B,C}. Then I plan at a later date to move files arbitrarily
> from ./Archive/{A/B/C}/Something and into ./Something{A/B/C}. (A lame
> example, but illustrates what I want to do).If this transition is meant to be persistent (IOW, the A, B and C stop existing as repos on their own) you can rewrite their histories to be in the directories (with git filter-branch) and just merge them in one. Then the histories will look like as if they have never grown separately.