Git development
 help / color / mirror / Atom feed
From: Michael J Gruber <git@drmicha.warpmail.net>
To: Rolf Wester <rolf.wester@ilt.fraunhofer.de>
Cc: git@vger.kernel.org
Subject: Re: How to safely remove a blob
Date: Tue, 15 Feb 2011 09:40:59 +0100	[thread overview]
Message-ID: <4D5A3C1B.2030600@drmicha.warpmail.net> (raw)
In-Reply-To: <4D5A358F.2050906@ilt.fraunhofer.de>

Rolf Wester venit, vidit, dixit 15.02.2011 09:13:
> Hello,
> 
> 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. I guess simply deleting the file could corrupt my repo or at least the clones of
> that repo.
> 
> I would be very appreciative for any help.

If nothing references that blob then it will go away eventually. The
last section of git-filter-branch's manpage (checklist for shrinking a
repo) details the steps you can take to get rid of it now. (You should
be already in the situation after applying filter-branch and removing
refs/original/*.) If the blob still persists then it is referenced.

Michael

      parent reply	other threads:[~2011-02-15  8:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-15  8:13 How to safely remove a blob Rolf Wester
2011-02-15  8:40 ` Alex Riesen
2011-02-15  8:42   ` Alex Riesen
2011-02-15  8:40 ` Michael J Gruber [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D5A3C1B.2030600@drmicha.warpmail.net \
    --to=git@drmicha.warpmail.net \
    --cc=git@vger.kernel.org \
    --cc=rolf.wester@ilt.fraunhofer.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox