My local repo is huge! but when I do a fresh clone its only ~5GB
When I run
$ git count-objects -vH
I get
warning: garbage found: .git/objects/pack/pack_git2_a00484
[many lines like this]
warning: garbage found: .git/objects/pack/pack_git2_c11896
count: 0
size: 0 bytes
in-pack: 38993
packs: 4
size-pack: 1.28 GiB
prune-packable: 0
garbage: 206
size-garbage: 42.19 GiB
and
git fsck --full --unreachable
Is showing lots of unreachable commits and blobs
I've tried many different commands including
git repack -Ad
git reflog expire --expire=now --all
git gc --aggressive --prune=now
but nothing is actually getting cleaned up.
How can I clean up my current repo to be the same as a fresh clone?