mv .git/objects/pack/pack-*.pack .
cat pack-*.pack | git unpack-objects
rm -r pack-*.pack

mv .git/objects/pack/pack-*.pack .
cat pack-*.pack | git unpack-objects
rm -f pack-*.pack

Use -f instead of -r flag.
Use -f instead of -r flag.
