GIT-PRUNE-PACKED(1)

✨ NAME ✨

okay bestie, welcome to GIT-PRUNE-PACKED(1) from the Git Manual πŸ’… β€” this one is literally about removing extra objects that are already in pack files. no cap.

πŸŽ€ SYNOPSIS πŸŽ€

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

πŸ¦‹ DESCRIPTION πŸ¦‹

so 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. yes, both places. πŸ‘€

all such extra objects are removed. periodt. πŸ’…

a pack is a collection of objects, individually compressed, with delta compression applied, stored in a single file, with an associated index file. it’s giving β€œorganized icon” ✨

packs are used to reduce the load on mirror systems, backup engines, disk storage, etc. tiny file, big efficiency energy. 🫢

🌸 OPTIONS 🌸

  • -n, --dry-run β€” bestie, this is your preview mode: it doesn’t actually remove any objects, it only shows the ones that would have been removed. πŸ’–
  • -q, --quiet β€” this one squelches the progress indicator, so the progress chatter goes quiet. 🀫

πŸ’œ SEE ALSO πŸ’œ

πŸ‘‘ GIT πŸ‘‘

part of the git(1) suite. obviously. ✨


mwah πŸ’– β€” source/version: Git 2.56.0, dated 2026-09-27. πŸŽ€

πŸ“¦ where this page comes from