2005-11-09 23:16:13 +00:00
|
|
|
git-pack-redundant(1)
|
2005-11-09 01:23:55 +00:00
|
|
|
=====================
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
2007-01-18 23:53:37 +00:00
|
|
|
git-pack-redundant - Find redundant pack files
|
2005-11-09 01:23:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
2011-07-02 02:38:26 +00:00
|
|
|
[verse]
|
2022-10-13 15:39:06 +00:00
|
|
|
'git pack-redundant' [--verbose] [--alt-odb] (--all | <pack-filename>...)
|
2005-11-09 01:23:55 +00:00
|
|
|
|
2023-03-28 19:06:41 +00:00
|
|
|
WARNING
|
|
|
|
-------
|
|
|
|
`git pack-redundant` 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 `git gc` to
|
|
|
|
do so, which will put objects into a new pack, removing duplicates.
|
|
|
|
|
|
|
|
Running `pack-redundant` without the `--i-still-use-this` flag will fail
|
|
|
|
in this release. If you believe you have a use case for which
|
|
|
|
`pack-redundant` is better suited and oppose this removal, please
|
|
|
|
contact the Git mailing list at git@vger.kernel.org. More information
|
|
|
|
about the list is available at https://git-scm.com/community.
|
|
|
|
|
2005-11-09 01:23:55 +00:00
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
This program computes which packs in your repository
|
|
|
|
are redundant. The output is suitable for piping to
|
2008-06-30 18:56:34 +00:00
|
|
|
`xargs rm` if you are in the root of the repository.
|
2005-11-09 01:23:55 +00:00
|
|
|
|
2010-01-09 23:33:00 +00:00
|
|
|
'git pack-redundant' accepts a list of objects on standard input. Any objects
|
2007-06-07 07:04:01 +00:00
|
|
|
given will be ignored when checking which packs are required. This makes the
|
2005-11-18 22:20:15 +00:00
|
|
|
following command useful when wanting to remove packs which contain unreachable
|
|
|
|
objects.
|
|
|
|
|
2008-06-30 06:09:04 +00:00
|
|
|
git fsck --full --unreachable | cut -d ' ' -f3 | \
|
|
|
|
git pack-redundant --all | xargs rm
|
2005-11-18 22:20:15 +00:00
|
|
|
|
2005-11-09 01:23:55 +00:00
|
|
|
OPTIONS
|
|
|
|
-------
|
|
|
|
|
|
|
|
|
2005-11-11 00:25:04 +00:00
|
|
|
--all::
|
2006-07-09 07:44:30 +00:00
|
|
|
Processes all packs. Any filenames on the command line are ignored.
|
2005-11-11 00:25:04 +00:00
|
|
|
|
|
|
|
--alt-odb::
|
|
|
|
Don't require objects present in packs from alternate object
|
2022-10-29 16:41:09 +00:00
|
|
|
database (odb) directories to be present in local packs.
|
2005-11-11 00:25:04 +00:00
|
|
|
|
|
|
|
--verbose::
|
|
|
|
Outputs some statistics to stderr. Has a small performance penalty.
|
2005-11-09 01:23:55 +00:00
|
|
|
|
2008-05-28 23:55:27 +00:00
|
|
|
SEE ALSO
|
2005-11-09 01:23:55 +00:00
|
|
|
--------
|
2007-12-29 06:20:38 +00:00
|
|
|
linkgit:git-pack-objects[1]
|
|
|
|
linkgit:git-repack[1]
|
|
|
|
linkgit:git-prune-packed[1]
|
2005-11-09 01:23:55 +00:00
|
|
|
|
|
|
|
GIT
|
|
|
|
---
|
2008-06-06 07:07:32 +00:00
|
|
|
Part of the linkgit:git[1] suite
|