<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">

<article lang="en" id="git-pack-redundant(1)">
<articleinfo>
    <title>git-pack-redundant(1)</title>
        <indexterm>
                <primary>git-pack-redundant(1)</primary>
        </indexterm>
</articleinfo>
<simplesect id="_name">
<title>NAME</title>
<simpara>git-pack-redundant - Find redundant pack files</simpara>
</simplesect>
<simplesect id="_synopsis">
<title>SYNOPSIS</title>
<simpara><emphasis>git pack-redundant</emphasis> [ --verbose ] [ --alt-odb ] &lt; --all | .pack filename &#8230; &gt;</simpara>
</simplesect>
<simplesect id="_description">
<title>DESCRIPTION</title>
<simpara>This program computes which packs in your repository
are redundant. The output is suitable for piping to
<literal>xargs rm</literal> if you are in the root of the repository.</simpara>
<simpara><emphasis>git-pack-redundant</emphasis> accepts a list of objects on standard input. Any objects
given will be ignored when checking which packs are required. This makes the
following command useful when wanting to remove packs which contain unreachable
objects.</simpara>
<simpara>git fsck --full --unreachable | cut -d ' ' -f3 | \
git pack-redundant --all | xargs rm</simpara>
</simplesect>
<simplesect id="_options">
<title>OPTIONS</title>
<variablelist>
<varlistentry>
<term>
--all
</term>
<listitem>
<simpara>
        Processes all packs. Any filenames on the command line are ignored.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
--alt-odb
</term>
<listitem>
<simpara>
        Don&#8217;t require objects present in packs from alternate object
        directories to be present in local packs.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
--verbose
</term>
<listitem>
<simpara>
        Outputs some statistics to stderr. Has a small performance penalty.
</simpara>
</listitem>
</varlistentry>
</variablelist>
</simplesect>
<simplesect id="_author">
<title>Author</title>
<simpara>Written by Lukas Sandström &lt;<ulink url="mailto:lukass@etek.chalmers.se">lukass@etek.chalmers.se</ulink>&gt;</simpara>
</simplesect>
<simplesect id="_documentation">
<title>Documentation</title>
<simpara>Documentation by Lukas Sandström &lt;<ulink url="mailto:lukass@etek.chalmers.se">lukass@etek.chalmers.se</ulink>&gt;</simpara>
</simplesect>
<simplesect id="_see_also">
<title>SEE ALSO</title>
<simpara><xref linkend="git-pack-objects(1)"/>
<xref linkend="git-repack(1)"/>
<xref linkend="git-prune-packed(1)"/></simpara>
</simplesect>
<simplesect id="_git">
<title>GIT</title>
<simpara>Part of the <xref linkend="git(1)"/> suite</simpara>
</simplesect>
</article>
