Subject: Re: Truncating and cleaning a imported git repositary to make it more usable

From: Johannes Sixt <[email-masked]>
Date: Mon, 31 Mar 2008 08:17:38 +0200

Alex Bennee schrieb:
> Hmm thats odd. Despite having successfully run the filter my repo is
> still the same size. git-fsck --full shows loads of dangling commits
> but I'm guessing because the repo is packed they don't get dropped. Is
> it possible to repack the whole repo or do you have to manually unpack
> the packs and re-pack?

Yes. Run git repack -a -d -f or create a local clone using the file protocol:

   git clone file://$(pwd)/this that

(If you don't use the file protocol, git clone just hard-links the
repository, and you again don't get the reduced size.)

-- Hannes