git-prune-packed(1)

git-prune-packed1

Remove extra objects that are already in pack files

Usage

git prune-packed [{-n | --dry-run}] [{-q | --quiet}]

Overview

This program searches the $GIT_OBJECT_DIRECTORY for all objects that currently exist in a pack file as well as in the independent object directories.

All such extra objects are removed.

A pack is a collection of objects, individually compressed, with delta compression applied, stored in a single file, with an associated index file.

Packs are used to reduce the load on mirror systems, backup engines, disk storage, etc.

Options

-n, --dry-run

Don’t actually remove any objects, only show those that would have been removed.

-q, --quiet

Squelch the progress indicator.

Git

Part of the git(1) suite

Releases

11 releases since Debian 4.0 (Etch); the text changed 10 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9
  7. 10
  8. 11
  9. 12
  10. 13
  11. Arch

--dry-run since Debian 6.0 (Squeeze); --quiet since Debian 6.0 (Squeeze); -q since Debian 5.0 (Lenny).

From git 2.56.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.