Documentation / git-repack.txton commit Finally implement "git log --follow" (750f7b6)
   1git-repack(1)
   2=============
   3
   4NAME
   5----
   6git-repack - Pack unpacked objects in a repository
   7
   8
   9SYNOPSIS
  10--------
  11'git-repack' [-a] [-d] [-f] [-l] [-n] [-q] [--window=N] [--depth=N]
  12
  13DESCRIPTION
  14-----------
  15
  16This script is used to combine all objects that do not currently
  17reside in a "pack", into a pack.
  18
  19A pack is a collection of objects, individually compressed, with
  20delta compression applied, stored in a single file, with an
  21associated index file.
  22
  23Packs are used to reduce the load on mirror systems, backup
  24engines, disk storage, etc.
  25
  26OPTIONS
  27-------
  28
  29-a::
  30        Instead of incrementally packing the unpacked objects,
  31        pack everything available into a single pack.
  32        Especially useful when packing a repository that is used
  33        for private development and there is no need to worry
  34        about people fetching via dumb file transfer protocols
  35        from it.  Use with '-d'.
  36
  37-d::
  38        After packing, if the newly created packs make some
  39        existing packs redundant, remove the redundant packs.
  40        Also runs gitlink:git-prune-packed[1].
  41
  42-l::
  43        Pass the `--local` option to `git pack-objects`, see
  44        gitlink:git-pack-objects[1].
  45
  46-f::
  47        Pass the `--no-reuse-delta` option to `git pack-objects`, see
  48        gitlink:git-pack-objects[1].
  49
  50-q::
  51        Pass the `-q` option to `git pack-objects`, see
  52        gitlink:git-pack-objects[1].
  53
  54-n::
  55        Do not update the server information with
  56        `git update-server-info`.
  57
  58--window=[N], --depth=[N]::
  59        These two options affect how the objects contained in the pack are
  60        stored using delta compression. The objects are first internally
  61        sorted by type, size and optionally names and compared against the
  62        other objects within `--window` to see if using delta compression saves
  63        space. `--depth` limits the maximum delta depth; making it too deep
  64        affects the performance on the unpacker side, because delta data needs
  65        to be applied that many times to get to the necessary object.
  66        The default value for --window is 10 and --depth is 50.
  67
  68--max-pack-size=<n>::
  69        Maximum size of each output packfile, expressed in MiB.
  70        If specified,  multiple packfiles may be created.
  71        The default is unlimited.
  72
  73
  74Configuration
  75-------------
  76
  77When configuration variable `repack.UseDeltaBaseOffset` is set
  78for the repository, the command passes `--delta-base-offset`
  79option to `git-pack-objects`; this typically results in slightly
  80smaller packs, but the generated packs are incompatible with
  81versions of git older than (and including) v1.4.3; do not set
  82the variable in a repository that older version of git needs to
  83be able to read (this includes repositories from which packs can
  84be copied out over http or rsync, and people who obtained packs
  85that way can try to use older git with it).
  86
  87
  88Author
  89------
  90Written by Linus Torvalds <torvalds@osdl.org>
  91
  92Documentation
  93--------------
  94Documentation by Ryan Anderson <ryan@michonline.com>
  95
  96See Also
  97--------
  98gitlink:git-pack-objects[1]
  99gitlink:git-prune-packed[1]
 100
 101GIT
 102---
 103Part of the gitlink:git[7] suite