git prune

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 information: https://git-scm.com/docs/git-prune.

git prune {{[-n|--dry-run]}}

git prune {{[-v|--verbose]}}

git prune --progress