git-prune
Git command for pruning all unreachable objects from the object database. tldr-pages
On several platforms
Several platforms
Git command for pruning all unreachable objects from the object database. This command is often not used directly but as an internal command that is used by Git gc.
Simulate pruning, reporting what would be removed
git prune --dry-runIdentifyPrune unreachable objects and display what has been pruned to stdout
git prune --verboseIdentifyPrune unreachable objects while showing progress
git prune --progressIdentify