2005-11-10 00:16:13 +01:00
|
|
|
git-pack-redundant(1)
|
2005-11-09 02:23:55 +01:00
|
|
|
=====================
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
2007-01-19 00:53:37 +01:00
|
|
|
git-pack-redundant - Find redundant pack files
|
2005-11-09 02:23:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
2011-07-02 04:38:26 +02:00
|
|
|
[verse]
|
2022-10-13 17:39:06 +02:00
|
|
|
'git pack-redundant' [--verbose] [--alt-odb] (--all | <pack-filename>...)
|
2005-11-09 02:23:55 +01:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
This program computes which packs in your repository
|
|
|
|
are redundant. The output is suitable for piping to
|
2008-06-30 20:56:34 +02:00
|
|
|
`xargs rm` if you are in the root of the repository.
|
2005-11-09 02:23:55 +01:00
|
|
|
|
2010-01-10 00:33:00 +01:00
|
|
|
'git pack-redundant' accepts a list of objects on standard input. Any objects
|
2007-06-07 09:04:01 +02:00
|
|
|
given will be ignored when checking which packs are required. This makes the
|
2005-11-18 23:20:15 +01:00
|
|
|
following command useful when wanting to remove packs which contain unreachable
|
|
|
|
objects.
|
|
|
|
|
2008-06-30 08:09:04 +02:00
|
|
|
git fsck --full --unreachable | cut -d ' ' -f3 | \
|
|
|
|
git pack-redundant --all | xargs rm
|
2005-11-18 23:20:15 +01:00
|
|
|
|
2005-11-09 02:23:55 +01:00
|
|
|
OPTIONS
|
|
|
|
-------
|
|
|
|
|
|
|
|
|
2005-11-11 01:25:04 +01:00
|
|
|
--all::
|
2006-07-09 09:44:30 +02:00
|
|
|
Processes all packs. Any filenames on the command line are ignored.
|
2005-11-11 01:25:04 +01:00
|
|
|
|
|
|
|
--alt-odb::
|
|
|
|
Don't require objects present in packs from alternate object
|
2022-10-29 18:41:09 +02:00
|
|
|
database (odb) directories to be present in local packs.
|
2005-11-11 01:25:04 +01:00
|
|
|
|
|
|
|
--verbose::
|
|
|
|
Outputs some statistics to stderr. Has a small performance penalty.
|
2005-11-09 02:23:55 +01:00
|
|
|
|
2008-05-29 01:55:27 +02:00
|
|
|
SEE ALSO
|
2005-11-09 02:23:55 +01:00
|
|
|
--------
|
2007-12-29 07:20:38 +01:00
|
|
|
linkgit:git-pack-objects[1]
|
|
|
|
linkgit:git-repack[1]
|
|
|
|
linkgit:git-prune-packed[1]
|
2005-11-09 02:23:55 +01:00
|
|
|
|
|
|
|
GIT
|
|
|
|
---
|
2008-06-06 09:07:32 +02:00
|
|
|
Part of the linkgit:git[1] suite
|