threads / discuss / 37132

Big repository cannot be reduced

Subject: Big repository cannot be reduced

## tl;dr

2 messages between Jul 15, 2014 and Jul 16, 2014.

replies: 1people: 2as markdown or json

Woody Wu· Jul 15, 2014, 16:43 UTC · lore
Hi,
I have tried some methods introduced in the network, but always failed.  Some big files committed by me to a very old branch then the files deleted and new branches were continuously created. Now the checkout directory has grown to about 80 megabytes.  What's the right way to permenently erase those garbage big files?

Thanks in advance. - Woody Wu from mobile phone

Michael Haggerty· Jul 16, 2014, 15:52 UTC · re: Woody Wu · lore

Re: Big repository cannot be reduced

On 07/15/2014 09:43 AM, Woody Wu wrote:
Show 5 quoted lines
> I have tried some methods introduced in the network, but always
> failed.  Some big files committed by me to a very old branch then the
> files deleted and new branches were continuously created. Now the
> checkout directory has grown to about 80 megabytes.  What's the right
> way to permenently erase those garbage big files?

You probably need to use "git filter-branch" or maybe BFG (http://rtyley.github.io/bfg-repo-cleaner/) to rewrite history as if the big files had never been committed. But beware of the warnings about rewriting history--for example, any collaborators will have to rebase their branches onto the new history.

Michael
-- 
Michael Haggerty
mhagger@alum.mit.edu

← back to recent threads