1GIT-REPACK(1)                     Git Manual                     GIT-REPACK(1)
2
3
4

NAME

6       git-repack - Pack unpacked objects in a repository
7

SYNOPSIS

9       git-repack [-a] [-d] [-f] [-l] [-n] [-q] [--window=N] [--depth=N]
10

DESCRIPTION

12       This script is used to combine all objects that do not currently reside
13       in a "pack", into a pack. It can also be used to re-organize existing
14       packs into a single, more efficient pack.
15
16       A pack is a collection of objects, individually compressed, with delta
17       compression applied, stored in a single file, with an associated index
18       file.
19
20       Packs are used to reduce the load on mirror systems, backup engines,
21       disk storage, etc.
22

OPTIONS

24       -a
25           Instead of incrementally packing the unpacked objects, pack
26           everything referenced into a single pack. Especially useful when
27           packing a repository that is used for private development and there
28           is no need to worry about people fetching via dumb protocols from
29           it. Use with -d. This will clean up the objects that git prune
30           leaves behind, but git fsck --full shows as dangling.
31
32       -d
33           After packing, if the newly created packs make some existing packs
34           redundant, remove the redundant packs. Also runs git-prune-
35           packed(1).
36
37       -l
38           Pass the --local option to git pack-objects, see git-pack-
39           objects(1).
40
41       -f
42           Pass the --no-reuse-delta option to git pack-objects, see git-pack-
43           objects(1).
44
45       -q
46           Pass the -q option to git pack-objects, see git-pack-objects(1).
47
48       -n
49           Do not update the server information with git update-server-info.
50
51       --window=[N], --depth=[N]
52           These two options affect how the objects contained in the pack are
53           stored using delta compression. The objects are first internally
54           sorted by type, size and optionally names and compared against the
55           other objects within --window to see if using delta compression
56           saves space. --depth limits the maximum delta depth; making it too
57           deep affects the performance on the unpacker side, because delta
58           data needs to be applied that many times to get to the necessary
59           object. The default value for --window is 10 and --depth is 50.
60
61       --window-memory=[N]
62           This option provides an additional limit on top of --window; the
63           window size will dynamically scale down so as to not take up more
64           than N bytes in memory. This is useful in repositories with a mix
65           of large and small objects to not run out of memory with a large
66           window, but still be able to take advantage of the large window for
67           the smaller objects. The size can be suffixed with "k", "m", or
68           "g". --window-memory=0 makes memory usage unlimited, which is the
69           default.
70
71       --max-pack-size=<n>
72           Maximum size of each output packfile, expressed in MiB. If
73           specified, multiple packfiles may be created. The default is
74           unlimited.
75

CONFIGURATION

77       When configuration variable repack.UseDeltaBaseOffset is set for the
78       repository, the command passes --delta-base-offset option to
79       git-pack-objects; this typically results in slightly smaller packs, but
80       the generated packs are incompatible with versions of git older than
81       (and including) v1.4.3; do not set the variable in a repository that
82       older version of git needs to be able to read (this includes
83       repositories from which packs can be copied out over http or rsync, and
84       people who obtained packs that way can try to use older git with it).
85

AUTHOR

87       Written by Linus Torvalds <torvalds@osdl.org>
88

DOCUMENTATION

90       Documentation by Ryan Anderson <ryan@michonline.com>
91

SEE ALSO

93       git-pack-objects(1) git-prune-packed(1)
94

GIT

96       Part of the git(7) suite
97
98
99
100
101Git 1.5.3.3                       10/09/2007                     GIT-REPACK(1)
Impressum