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