From: Michael Hendricks Date: Wed, 21 Feb 2007 18:30:29 GMT Subject: Re: removing content from git history Message-ID: <20070221183028.GA9088@ginosko.local> In-Reply-To: On Wed, Feb 21, 2007 at 09:14:44AM -0800, Linus Torvalds wrote: > > See "cg-admin-rewritehist" from cogito for an example of a tool that > would do what you need done. In fact, it has this exact thing as the > first example. That's just what I was looking for. Thanks. > So right now, rewriting history is an option that you can do. It will > effectively create a totally new branch (which you can then make into a > new repository) which has nothing in common with the old branch from the > point where it was modified. So you can never really merge the two ever > again, and you need to make sure that everybody who had the old repo > contents will destroy it. What's a decent way to make a branch into a new repository? My first inclination is to "cp -a" the existing repository, checkout the branch, delete all other branches and repack. That seems to have worked in my quick test, but is there a better way? -- Michael