From: Andreas Ericsson <ae@op5.se>
To: Hallvard Breien Furuseth <h.b.furuseth@usit.uio.no>
Cc: git@vger.kernel.org
Subject: Re: git gc == git garbage-create from removed branch
Date: Fri, 04 May 2012 09:37:21 +0200 [thread overview]
Message-ID: <4FA38731.8010504@op5.se> (raw)
In-Reply-To: <hbf.20120503q14w@bombur.uio.no>
On 05/03/2012 08:38 PM, Hallvard Breien Furuseth wrote:
> After removing a branch, 'git gc' explodes all objects
> which were only in that branch. Git filled up my disk that
> way when I had cherry-picked from a big remote repo and then
> did git remote rm. Tested with Git 1.7.10.1 and 1.7.1.
>
That's by design. It's added to save people who accidentally
delete a branch or for some other reason really want to keep the
objects they're about to delete.
Use 'git gc --prune=now' with a recent* git and you'll avoid the
problem.
* Recent enough to include the patch that avoids writing out loose
objects when they would be auto-deleted by the following pruning.
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
next prev parent reply other threads:[~2012-05-04 7:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-03 18:38 git gc == git garbage-create from removed branch Hallvard Breien Furuseth
2012-05-04 7:37 ` Andreas Ericsson [this message]
2012-05-04 8:58 ` Hallvard Breien Furuseth
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=4FA38731.8010504@op5.se \
--to=ae@op5.se \
--cc=git@vger.kernel.org \
--cc=h.b.furuseth@usit.uio.no \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.