From: Elijah Newren Date: Sun, 07 Oct 2007 23:38:55 GMT Subject: Re: Trying to use git-filter-branch to compress history by removing large, obsolete binary files Message-ID: <51419b2c0710071638p6dcc0c7cm2a813c22758e6f32@mail.gmail.com> In-Reply-To: Hi, On 10/7/07, Johannes Schindelin wrote: > On Sun, 7 Oct 2007, Elijah Newren wrote: > > $ git clone test test2 > > > > $ du -hs test > > 11M test > > $ du -hs test2 > > 11M test2 > > > > Any other ideas? > > Yep. Maybe it is necessary to run "git gc" in test2. Sweet, finally solved! That brings test2 down to 340K. However, the solution seems somewhat involved...it requires running git-filter-branch, git reset, removing the .git/refs/original/ directory, editing .git/packed-refs in some editor, running git reflog expire, cloning the resulting repository, and running git gc yet again. It seems like there has to be an easier way. (Anyone have one?) Oh, and git-filter-branch could really use some explanatory note about how to actually complete rewriting the history. Thanks, Elijah