From: Junio C Hamano Date: Sat, 04 Mar 2006 00:53:40 GMT Subject: Re: git-repack && git-prune-packed isn't doing it's job anymore? Message-ID: <7v64mv2for.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <46a038f90603031629qbbb287ckd8da1ef56a831dba@mail.gmail.com> "Martin Langhoff" writes: > $ find .git/objects -type f | grep -v pack | wc -l > 3297 > $ git-repack && git-prune-packed > Generating pack... > Done counting 664 objects. > Deltifying 664 objects. > 100% (664/664) done > Writing 664 objects. > 100% (664/664) done > Total 664, written 664 (delta 384), reused 0 (delta 0) > Pack pack-f38c51a5d5194d6a2f6e711586b9a51980c8d524 created. > $ find .git/objects -type f | grep -v pack | wc -l > 2583 The last one would be "git count-objects", but repack packs things that are reachable from your refs and prune-packed removes what are in packs, so perhaps these are unreachable objects? I'd imagine fsck-objects would say they are dangling. If that is the case, "git prune" would be the right tool to use. And this is not something that changed recently.