I'd like to remove objects (.git/objects) from my repository that are no longer referenced by any refs, but I don't want to pack to pack files.
I tried git gc --no-prune but it still removed all objects from my repo and left only packfiles (git count-objects reports "0 objects, 0 kilobytes").