commands.sh

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-runboolean

Report what would be removed by Git prune without removing it

Example: git prune {{[-n|--dry-run]}}
-v, --verboseboolean

Prune unreachable objects and display what has been pruned to `stdout`

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

Examples (3)

Report what would be removed by Git prune without removing it

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

Prune unreachable objects and display what has been pruned to `stdout`

git prune [-v|--verbose]

Prune unreachable objects while showing progress

git prune --progress
made by @shridhargupta | data from tldr-pages