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 --dry-run

git prune --verbose

git prune --progress