git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-gc doesn't clean up leftover objects after git-filter-branch unless you clone first

From
Jeff King <peff@peff.net>
Date
Apr 23, 2008, 22:13 UTC
Message-ID
<20080423221316.GE30057@sigill.intra.peff.net>
In-Reply-To
<7vve28sdys.fsf@gitster.siamese.dyndns.org>
On Wed, Apr 23, 2008 at 10:00:59AM -0700, Junio C Hamano wrote:
> - Teach people that leftover cruft is nothing to worry about.

But it _is_ something to worry about in some particular situations. For run-of-the-mill rebasing, sure, ignore it. But this question usually comes up because the user did something like:

  1. import from foreign SCM or other source
  2. realize massive, history-wide mistake; git filter-branch
     to fix up the changes
  3. wonder why git is using twice as much space as it needs to; with
     a repository in the hundreds or thousands of megs, this can get
     really annoying (either because of wasted space, or because some
     operations, like "git repack -a" actually do per-object work).
-Peff
Previous: Avery PennarunNext: Jeff King
Message 4 of 12 in “git-gc doesn't clean up leftover objects after git-filter-branch unless you clone first”
  1. Avery PennarunApr 23, 2008
  2. Junio C HamanoApr 23, 2008
  3. Avery PennarunApr 23, 2008
  4. Jeff KingApr 23, 2008
  5. Jeff KingApr 24, 2008
  6. Avery PennarunApr 24, 2008
  7. Jeff KingApr 24, 2008
  8. Avery PennarunApr 24, 2008
  9. Documentation: point git-prune users to git-gcJeff King, Apr 29, 2008
  10. Junio C HamanoApr 29, 2008
  11. Jeff KingApr 29, 2008
  12. Junio C HamanoApr 30, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.