Re: Truncating and cleaning a imported git repositary to make it more usable
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Mar 31, 2008, 06:17 UTC
- Message-ID
- <47F08202.9030206@viscovery.net>
- In-Reply-To
- <b2cdc9f30803290647n31bd6db5r4f346360989c2dcd@mail.gmail.com>
Alex Bennee schrieb:
Show 5 quoted lines
> 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