From: Alex Riesen Date: Sun, 07 Oct 2007 23:40:39 GMT Subject: Re: Trying to use git-filter-branch to compress history by removing large, obsolete binary files Message-ID: <20071007234039.GH2765@steel.home> In-Reply-To: <51419b2c0710071524q16e9c593s2722dffc826e560d@mail.gmail.com> Elijah Newren, Mon, Oct 08, 2007 00:24:49 +0200: > On 10/7/07, Alex Riesen wrote: > > rm -rf .git/refs/original/refs/heads/ > > (assuming you haven't repacked yet) > > > > or just edit .git/packed-refs and remove everything "refs/original" > > which fits the criteria > > > > > So...how do I fix the reflog, and then repack to have a > > > pack under 11MB in size? > > > > git reflog expire --all (it is a bit to much. You can just edit > > .git/logs/* in any text editor) > > So... > > $ du -hs . > 11M . > $ rm -rf .git/refs/original/ > $ vi .git/packed-refs > # Remove the line referring to refs/original... > $ git reflog expire --all > $ git gc --aggressive --prune > $ du -hs . > 11M . > > It's still 11MB. > > Any other ideas? you missed something. Your example compresses to about 124k.