Git alias:
pruner = !"git prune --expire=now; git reflog expire --expire-unreachable=now --rewrite --all"
Example:
git pruner
This command takes a long time to run, perhaps even overnight.
This is useful for removing unreachable objects from all places.
By CodeGnome