Re: How to safely remove a blob
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Feb 15, 2011, 08:40 UTC
- Message-ID
- <AANLkTinrV3hKEva5qnaLniP+VoO2trrTVsWcc6YoBQ=t@mail.gmail.com>
- In-Reply-To
- <4D5A358F.2050906@ilt.fraunhofer.de>
On Tue, Feb 15, 2011 at 09:13, Rolf Wester <rolf.wester@ilt.fraunhofer.de> wrote:
> in one of my git repos I found an 102 MB object that probably came in there > more or less occasionally. > Its a blob and I would like to remove it safely. I tried to figure out how > to do it but I was not very successful.
Take a look at "git filter-branch". There is even an example which does exactly this (search for "git filter-branch --tree-filter").
> I guess simply deleting the file could corrupt my repo > or at least the clones of that repo.
The repo itself.