summaryrefslogtreecommitdiff
path: root/devdocs/git/git-pack-redundant.html
blob: c03cfedc231f630e6d23c9a2cb6783060ac6b7be (plain)
1
2
3
4
5
6
<h1>git-pack-redundant</h1>  <h2 id="_name">Name</h2> <div class="sectionbody">  <p>git-pack-redundant - Find redundant pack files</p>  </div>   <h2 id="_synopsis">Synopsis</h2> <div class="sectionbody"> <div class="verseblock"> <pre class="content" data-language="shell">git pack-redundant [--verbose] [--alt-odb] (--all | &lt;pack-filename&gt;…​)</pre> </div> </div>   <h2 id="_warning">Warning</h2> <div class="sectionbody">  <p><code>git pack-redundant</code> has been deprecated and is scheduled for removal in a future version of Git. Because it can only remove entire duplicate packs and not individual duplicate objects, it is generally not a useful tool for reducing repository size. You are better off using <code>git gc</code> to do so, which will put objects into a new pack, removing duplicates.</p>   <p>Running <code>pack-redundant</code> without the <code>--i-still-use-this</code> flag will fail in this release. If you believe you have a use case for which <code>pack-redundant</code> is better suited and oppose this removal, please contact the Git mailing list at <a href="mailto:git@vger.kernel.org">git@vger.kernel.org</a>. More information about the list is available at <a href="https://git-scm.com/community" class="bare">https://git-scm.com/community</a>.</p>  </div>   <h2 id="_description">Description</h2> <div class="sectionbody">  <p>This program computes which packs in your repository are redundant. The output is suitable for piping to <code>xargs rm</code> if you are in the root of the repository.</p>   <p><code>git pack-redundant</code> 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>   <p>git fsck --full --unreachable | cut -d ' ' -f3 | \ git pack-redundant --all | xargs rm</p>  </div>   <h2 id="_options">Options</h2> <div class="sectionbody"> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-pack-redundant.txt---all"> --all </dt> <dd> <p>Processes all packs. Any filenames on the command line are ignored.</p> </dd> <dt class="hdlist1" id="Documentation/git-pack-redundant.txt---alt-odb"> --alt-odb </dt> <dd> <p>Don’t require objects present in packs from alternate object database (odb) directories to be present in local packs.</p> </dd> <dt class="hdlist1" id="Documentation/git-pack-redundant.txt---verbose"> --verbose </dt> <dd> <p>Outputs some statistics to stderr. Has a small performance penalty.</p> </dd> </dl> </div> </div>   <h2 id="_see_also">See also</h2> <div class="sectionbody">  <p><a href="git-pack-objects">git-pack-objects[1]</a> <a href="git-repack">git-repack[1]</a> <a href="git-prune-packed">git-prune-packed[1]</a></p>  </div><div class="_attribution">
  <p class="_attribution-p">
    &copy; 2012&ndash;2024 Scott Chacon and others<br>Licensed under the MIT License.<br>
    <a href="https://git-scm.com/docs/git-pack-redundant" class="_attribution-link">https://git-scm.com/docs/git-pack-redundant</a>
  </p>
</div>