On Wednesday, September 27, 2017 01:56:40 PM Konstantin Khomoutov wrote: > On Wed, Sep 27, 2017 at 12:52:34PM -0400, Paul Smith wrote: > > Hi all. I'm wondering if anyone has a script or something that will > > allow me to create a new repository which recreates the commit > > structure (parent/child, branches, merges) of an existing repository, > > but with obfuscated content. It's OK if this is slow.
For future readers (and based on the subject line) presumably you don't mean obfuscated but more like omitted (or elided). > > You need the `git filter-branch` command. > > To make it as fast as possible, you can use it with the "--index-filter" > command-line option and script around it with `git cat-file` and > `git update-index`. > > If you'd prefer to trade speed for easiness of implementation, consider > the "--tree-filter" command-line option instead.
