blob: f2869da57282658e8f689905a686ba2f74bc9020 [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-pack-redundant(1)
2=====================
3
4NAME
5----
Junio C Hamano7c73c662007-01-19 00:37:506git-pack-redundant - Find redundant pack files
Junio C Hamano1a4e8412005-12-27 08:17:237
8
9SYNOPSIS
10--------
Junio C Hamano15567bc2011-07-23 00:51:5911[verse]
Junio C Hamanofce7c7e2008-07-02 03:06:3812'git pack-redundant' [ --verbose ] [ --alt-odb ] < --all | .pack filename ... >
Junio C Hamano1a4e8412005-12-27 08:17:2313
14DESCRIPTION
15-----------
16This program computes which packs in your repository
17are redundant. The output is suitable for piping to
Junio C Hamanofce7c7e2008-07-02 03:06:3818`xargs rm` if you are in the root of the repository.
Junio C Hamano1a4e8412005-12-27 08:17:2319
Junio C Hamano1aa40d22010-01-21 17:46:4320'git pack-redundant' accepts a list of objects on standard input. Any objects
Junio C Hamanoa77a5132007-06-08 16:13:4421given will be ignored when checking which packs are required. This makes the
Junio C Hamano1a4e8412005-12-27 08:17:2322following command useful when wanting to remove packs which contain unreachable
23objects.
24
Junio C Hamanofce7c7e2008-07-02 03:06:3825git fsck --full --unreachable | cut -d ' ' -f3 | \
26git pack-redundant --all | xargs rm
Junio C Hamano1a4e8412005-12-27 08:17:2327
28OPTIONS
29-------
30
31
32--all::
Junio C Hamano51c2ab02006-07-09 20:38:5433Processes all packs. Any filenames on the command line are ignored.
Junio C Hamano1a4e8412005-12-27 08:17:2334
35--alt-odb::
36Don't require objects present in packs from alternate object
37directories to be present in local packs.
38
39--verbose::
40Outputs some statistics to stderr. Has a small performance penalty.
41
Junio C Hamano9049d912008-05-29 02:09:5042SEE ALSO
Junio C Hamano1a4e8412005-12-27 08:17:2343--------
Junio C Hamano35738e82008-01-07 07:55:4644linkgit:git-pack-objects[1]
45linkgit:git-repack[1]
46linkgit:git-prune-packed[1]
Junio C Hamano1a4e8412005-12-27 08:17:2347
48GIT
49---
Junio C Hamanof7c042d2008-06-06 22:50:5350Part of the linkgit:git[1] suite