1git-pack-refs(1)
2================
34
NAME
5----
6git-pack-refs - Pack heads and tags for efficient repository access
78
SYNOPSIS
9--------
10'git-pack-refs' [--all] [--no-prune]
1112
DESCRIPTION
13-----------
1415
Traditionally, tips of branches and tags (collectively known as
16'refs') were stored one file per ref under `$GIT_DIR/refs`
17directory. While many branch tips tend to be updated often,
18most tags and some branch tips are never updated. When a
19repository has hundreds or thousands of tags, this
20one-file-per-ref format both wastes storage and hurts
21performance.
2223
This command is used to solve the storage and performance
24problem by stashing the refs in a single file,
25`$GIT_DIR/packed-refs`. When a ref is missing from the
26traditional `$GIT_DIR/refs` hierarchy, it is looked up in this
27file and used if found.
2829
Subsequent updates to branches always creates new file under
30`$GIT_DIR/refs` hierarchy.
3132
OPTIONS
33-------
3435
\--all::
3637
The command by default packs all tags and leaves branch tips
38alone. This is because branches are expected to be actively
39developed and packing their tips does not help performance.
40This option causes branch tips to be packed as well. Useful for
41a repository with many branches of historical interests.
4243
\--no-prune::
4445
The command usually removes loose refs under `$GIT_DIR/refs`
46hierarchy after packing them. This option tells it not to.
4748
49
Author
50------
51Written by Linus Torvalds <torvalds@osdl.org>
5253
GIT
54---
55Part of the gitlink:git[7] suite