]>
Commit | Line | Data |
---|---|---|
215a7ad1 JH |
1 | git-prune(1) |
2 | ============ | |
f85a4191 | 3 | v0.99.5, Aug 2005 |
2cf565c5 DG |
4 | |
5 | NAME | |
6 | ---- | |
215a7ad1 | 7 | git-prune - Prunes all unreachable objects from the object database |
2cf565c5 DG |
8 | |
9 | ||
10 | SYNOPSIS | |
11 | -------- | |
215a7ad1 | 12 | 'git-prune' [-n] |
2cf565c5 DG |
13 | |
14 | DESCRIPTION | |
15 | ----------- | |
f85a4191 | 16 | |
215a7ad1 | 17 | This runs `git-fsck-objects --unreachable` using the heads |
f85a4191 JH |
18 | specified on the command line (or `$GIT_DIR/refs/heads/\*` and |
19 | `$GIT_DIR/refs/tags/\*` if none is specified), and prunes all | |
20 | unreachable objects from the object database. In addition, it | |
21 | prunes the unpacked objects that are also found in packs by | |
22 | running `git prune-packed`. | |
23 | ||
24 | OPTIONS | |
25 | ------- | |
26 | ||
27 | -n:: | |
28 | Do not remove anything; just report what it would | |
29 | remove. | |
2cf565c5 DG |
30 | |
31 | ||
32 | Author | |
33 | ------ | |
34 | Written by Linus Torvalds <torvalds@osdl.org> | |
35 | ||
36 | Documentation | |
37 | -------------- | |
38 | Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>. | |
39 | ||
40 | GIT | |
41 | --- | |
a7154e91 | 42 | Part of the gitlink:git[7] suite |
2cf565c5 | 43 |