From: Avery Pennarun Date: Fri, 12 Jun 2009 03:44:15 GMT Subject: Re: Copying files and keeping the history Message-ID: <32541b130906112044m7cf2c0e9s2ba4815a31e534a@mail.gmail.com> In-Reply-To: On Thu, Jun 11, 2009 at 2:29 PM, Sverre Rabbelier wrote: > On Thu, Jun 11, 2009 at 15:20, JörgenHägg 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