From: Taylor Blau Date: Wed, 15 Apr 2020 15:49:44 GMT Subject: Re: Move some files, with all history, from one project into a new one Message-ID: <20200415154944.GA22823@syl.local> In-Reply-To: <20200415151128.GA2464307@coredump.intra.peff.net> On Wed, Apr 15, 2020 at 11:11:28AM -0400, Jeff King wrote: > On Wed, Apr 15, 2020 at 08:31:35AM +0000, Kerry, Richard wrote: > > > I would like to move some files, from the project in which they have > > always resided into a new project. I would like to keep all their > > history. I don't want to waste space by also moving the rest of the > > old project's history, or historical file contents. > > Try git-filter-branch's --subdirectory repository, which is designed to > do exactly this. > > Or the much newer (and faster) git-filter-repo: > > https://github.com/newren/git-filter-repo For what it's worth, Elijah has provided some excellent documentation on how to use git-filter-repo to do exactly this here: https://github.com/newren/git-filter-repo#solving-this-with-filter-repo Thanks, Taylor