Re: removing content from git history
- From
Michael Hendricks <michael@ndrix.org>
- Date
- Feb 21, 2007, 18:30 UTC
- Message-ID
- <20070221183028.GA9088@ginosko.local>
- In-Reply-To
- <Pine.LNX.4.64.0702210904350.4043@woody.linux-foundation.org>
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.
Show 6 quoted lines
> 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