1GIT-MULTI-PACK-IN(1)              Git Manual              GIT-MULTI-PACK-IN(1)
2
3
4

NAME

6       git-multi-pack-index - Write and verify multi-pack-indexes
7

SYNOPSIS

9       git multi-pack-index [--object-dir=<dir>] [--[no-]progress] <subcommand>
10

DESCRIPTION

12       Write or verify a multi-pack-index (MIDX) file.
13

OPTIONS

15       --object-dir=<dir>
16           Use given directory for the location of Git objects. We check
17           <dir>/packs/multi-pack-index for the current MIDX file, and
18           <dir>/packs for the pack-files to index.
19
20       --[no-]progress
21           Turn progress on/off explicitly. If neither is specified, progress
22           is shown if standard error is connected to a terminal.
23
24       The following subcommands are available:
25
26       write
27           Write a new MIDX file.
28
29       verify
30           Verify the contents of the MIDX file.
31
32       expire
33           Delete the pack-files that are tracked by the MIDX file, but have
34           no objects referenced by the MIDX. Rewrite the MIDX file afterward
35           to remove all references to these pack-files.
36
37       repack
38           Create a new pack-file containing objects in small pack-files
39           referenced by the multi-pack-index. If the size given by the
40           --batch-size=<size> argument is zero, then create a pack containing
41           all objects referenced by the multi-pack-index. For a non-zero
42           batch size, Select the pack-files by examining packs from
43           oldest-to-newest, computing the "expected size" by counting the
44           number of objects in the pack referenced by the multi-pack-index,
45           then divide by the total number of objects in the pack and multiply
46           by the pack size. We select packs with expected size below the
47           batch size until the set of packs have total expected size at least
48           the batch size, or all pack-files are considered. If only one
49           pack-file is selected, then do nothing. If a new pack-file is
50           created, rewrite the multi-pack-index to reference the new
51           pack-file. A later run of git multi-pack-index expire will delete
52           the pack-files that were part of this batch.
53
54           If repack.packKeptObjects is false, then any pack-files with an
55           associated .keep file will not be selected for the batch to repack.
56

EXAMPLES

58       •   Write a MIDX file for the packfiles in the current .git folder.
59
60               $ git multi-pack-index write
61
62       •   Write a MIDX file for the packfiles in an alternate object store.
63
64               $ git multi-pack-index --object-dir <alt> write
65
66       •   Verify the MIDX file for the packfiles in the current .git folder.
67
68               $ git multi-pack-index verify
69

SEE ALSO

71       See The Multi-Pack-Index Design Document[1] and The Multi-Pack-Index
72       Format[2] for more information on the multi-pack-index feature.
73

GIT

75       Part of the git(1) suite
76

NOTES

78        1. The Multi-Pack-Index Design Document
79           file:///usr/share/doc/git/technical/multi-pack-index.html
80
81        2. The Multi-Pack-Index Format
82           file:///usr/share/doc/git/technical/pack-format.html
83
84
85
86Git 2.31.1                        2021-03-26              GIT-MULTI-PACK-IN(1)
Impressum