git prune
all
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.
More info →Options (2)
-n, --dry-runbooleanReport what would be removed by Git prune without removing it
Example:
git prune {{[-n|--dry-run]}}-v, --verbosebooleanPrune unreachable objects and display what has been pruned to `stdout`
Example:
git prune {{[-v|--verbose]}}made by @shridhargupta | data from tldr-pages