Merge branch 'fixes'
[git.git] / Documentation / git-prune.txt
1 git-prune(1)
2 ============
3
4 NAME
5 ----
6 git-prune - Prunes all unreachable objects from the object database
7
8
9 SYNOPSIS
10 --------
11 'git-prune' [-n]
12
13 DESCRIPTION
14 -----------
15
16 This runs `git-fsck-objects --unreachable` using the heads
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.
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 ---
41 Part of the gitlink:git[7] suite
42