man-pages/man1/git-pack-redundant.1.html
2021-03-31 01:06:50 +01:00

104 lines
2.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of GIT-PACK-REDUNDANT</TITLE>
</HEAD><BODY>
<H1>GIT-PACK-REDUNDANT</H1>
Section: Git Manual (1)<BR>Updated: 03/04/2021<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
git-pack-redundant - Find redundant pack files
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<P>
<PRE>
<I>git pack-redundant</I> [ --verbose ] [ --alt-odb ] &lt; --all | .pack filename ... &gt;
</PRE>
<P>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
This program computes which packs in your repository are redundant. The output is suitable for piping to <B>xargs rm</B> if you are in the root of the repository.
<P>
<I>git pack-redundant</I> 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.
<P>
git fsck --full --unreachable | cut -d ' ' -f3 | \ git pack-redundant --all | xargs rm
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<P>
--all
<DL COMPACT><DT id="1"><DD>
Processes all packs. Any filenames on the command line are ignored.
</DL>
<P>
--alt-odb
<DL COMPACT><DT id="2"><DD>
Don't require objects present in packs from alternate object directories to be present in local packs.
</DL>
<P>
--verbose
<DL COMPACT><DT id="3"><DD>
Outputs some statistics to stderr. Has a small performance penalty.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>
<P>
<B><A HREF="/cgi-bin/man/man2html?1+git-pack-objects">git-pack-objects</A></B>(1) <B><A HREF="/cgi-bin/man/man2html?1+git-repack">git-repack</A></B>(1) <B><A HREF="/cgi-bin/man/man2html?1+git-prune-packed">git-prune-packed</A></B>(1)
<A NAME="lbAG">&nbsp;</A>
<H2>GIT</H2>
<P>
Part of the <B><A HREF="/cgi-bin/man/man2html?1+git">git</A></B>(1) suite
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="4"><A HREF="#lbAB">NAME</A><DD>
<DT id="5"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="6"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="7"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="8"><A HREF="#lbAF">SEE ALSO</A><DD>
<DT id="9"><A HREF="#lbAG">GIT</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:14 GMT, March 31, 2021
</BODY>
</HTML>