Re: Preserving git history across repositories
[email protected] (brian d foy)
| Newsgroups | perl.cpan.workers |
|---|---|
| Message-ID | <231220131543035993%[email protected]> |
In article <CAATnKFC2=66r7b-DgrbrU+6v7vNvf2MgY1rp87HP3OA86A=vPg@mail.gmail.com>, Kent Fredric <[email protected]> wrote: > On 23 December 2013 03:51, James E Keenan <[email protected]> wrote: > > Is it possible to preserve the commit history of a tree of files as it moves > > out of one repository and into another > > > I believe what you want to do is as follows: > > 1. Clone the Perl repository > 2. Perform a branch filter on all branches to move ext/Pod-Html/* to / > ( See git filter-branch --subdirectory-filter ) > 3. Possibly perform a branch filter to remove empty commits I did this to move all of my modules from the big, single SVN repo I had in SourceForge to separate repos for GitHub. It still seems like wonderful magic to me. After the filter you probably want to do a gc. http://use.perl.org/use.perl.org/_brian_d_foy/journal/37296.html