<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sect2 SYSTEM "../../../dtd/dblite.dtd">

<sect2 lang="en" id="git-prune-packed(1)">
    <title>git-prune-packed(1)</title>
    <date>2024-07-02</date>
<revhistory><revision><date>2024-07-02</date></revision></revhistory>
<indexterm>
<primary>git-prune-packed(1)</primary>
</indexterm>
<simplesect id="git-prune-packed(1)__name">
<title>NAME</title>
<simpara>git-prune-packed - Remove extra objects that are already in pack files</simpara>
</simplesect>
<simplesect id="git-prune-packed(1)__synopsis">
<title>SYNOPSIS</title>
<blockquote>
<literallayout><emphasis>git prune-packed</emphasis> [-n | --dry-run] [-q | --quiet]</literallayout>
</blockquote>
</simplesect>
<simplesect id="git-prune-packed(1)__description">
<title>DESCRIPTION</title>
<simpara>This program searches the <emphasis>$GIT_OBJECT_DIRECTORY</emphasis> for all objects that currently
exist in a pack file as well as in the independent object directories.</simpara>
<simpara>All such extra objects are removed.</simpara>
<simpara>A pack is a collection of objects, individually compressed, with delta
compression applied, stored in a single file, with an associated index file.</simpara>
<simpara>Packs are used to reduce the load on mirror systems, backup engines,
disk storage, etc.</simpara>
</simplesect>
<simplesect id="git-prune-packed(1)__options">
<title>OPTIONS</title>
<variablelist>
<varlistentry>
<term>
-n
</term>
<term>
--dry-run
</term>
<listitem>
<simpara>
        Don't actually remove any objects, only show those that would have been
        removed.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
-q
</term>
<term>
--quiet
</term>
<listitem>
<simpara>
        Squelch the progress indicator.
</simpara>
</listitem>
</varlistentry>
</variablelist>
</simplesect>
<simplesect id="git-prune-packed(1)__see_also">
<title>SEE ALSO</title>
<simpara><xref linkend="git-pack-objects(1)" />
<xref linkend="git-repack(1)" /></simpara>
</simplesect>
<simplesect id="git-prune-packed(1)__git">
<title>GIT</title>
<simpara>Part of the <xref linkend="git(1)" /> suite</simpara>
</simplesect>
</sect2>
