Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1 | git-pack-redundant(1) |
| 2 | ===================== |
| 3 | |
| 4 | NAME |
| 5 | ---- |
Junio C Hamano | 7c73c66 | 2007-01-19 00:37:50 | [diff] [blame] | 6 | git-pack-redundant - Find redundant pack files |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 7 | |
| 8 | |
| 9 | SYNOPSIS |
| 10 | -------- |
Junio C Hamano | 15567bc | 2011-07-23 00:51:59 | [diff] [blame] | 11 | [verse] |
Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 12 | 'git pack-redundant' [ --verbose ] [ --alt-odb ] < --all | .pack filename ... > |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 13 | |
| 14 | DESCRIPTION |
| 15 | ----------- |
| 16 | This program computes which packs in your repository |
| 17 | are redundant. The output is suitable for piping to |
Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 18 | `xargs rm` if you are in the root of the repository. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 19 | |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 20 | 'git pack-redundant' accepts a list of objects on standard input. Any objects |
Junio C Hamano | a77a513 | 2007-06-08 16:13:44 | [diff] [blame] | 21 | given will be ignored when checking which packs are required. This makes the |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 22 | following command useful when wanting to remove packs which contain unreachable |
| 23 | objects. |
| 24 | |
Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 25 | git fsck --full --unreachable | cut -d ' ' -f3 | \ |
| 26 | git pack-redundant --all | xargs rm |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 27 | |
| 28 | OPTIONS |
| 29 | ------- |
| 30 | |
| 31 | |
| 32 | --all:: |
Junio C Hamano | 51c2ab0 | 2006-07-09 20:38:54 | [diff] [blame] | 33 | Processes all packs. Any filenames on the command line are ignored. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 34 | |
| 35 | --alt-odb:: |
| 36 | Don't require objects present in packs from alternate object |
| 37 | directories to be present in local packs. |
| 38 | |
| 39 | --verbose:: |
| 40 | Outputs some statistics to stderr. Has a small performance penalty. |
| 41 | |
Junio C Hamano | 9049d91 | 2008-05-29 02:09:50 | [diff] [blame] | 42 | SEE ALSO |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 43 | -------- |
Junio C Hamano | 35738e8 | 2008-01-07 07:55:46 | [diff] [blame] | 44 | linkgit:git-pack-objects[1] |
| 45 | linkgit:git-repack[1] |
| 46 | linkgit:git-prune-packed[1] |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 47 | |
| 48 | GIT |
| 49 | --- |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 50 | Part of the linkgit:git[1] suite |