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