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. If the total size does not reach the batch size,
49           then do nothing. If a new pack- file is created, rewrite the
50           multi-pack-index to reference the new pack-file. A later run of git
51           multi-pack-index expire will delete the pack-files that were part
52           of this batch.
53

EXAMPLES

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

SEE ALSO

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

GIT

72       Part of the git(1) suite
73

NOTES

75        1. The Multi-Pack-Index Design Document
76           file:///usr/share/doc/git/technical/multi-pack-index.html
77
78        2. The Multi-Pack-Index Format
79           file:///usr/share/doc/git/technical/pack-format.html
80
81
82
83Git 2.26.2                        2020-04-20              GIT-MULTI-PACK-IN(1)
Impressum