Setup and Config
Getting and Creating Projects
Basic Snapshotting
Branching and Merging
Sharing and Updating Projects
Inspection and Comparison
Patching
Debugging
External Systems
Administration
Server Admin
Plumbing Commands
- 1.7.6.2 → 1.8.3 no changes
-
1.7.6.1
08/24/11
- 1.7.5.1 → 1.7.6 no changes
-
1.7.5
04/24/11
- 1.7.2.3 → 1.7.4.5 no changes
-
1.7.2.2
08/19/10
- 1.7.0.2 → 1.7.2.1 no changes
-
1.7.0.1
02/28/10
-
1.7.0
02/12/10
- 1.6.1.1 → 1.6.6.3 no changes
-
1.6.1
12/25/08
- 1.6.0.1 → 1.6.0.6 no changes
-
1.6.0
08/17/08
- 1.5.6.1 → 1.5.6.6 no changes
-
1.5.6
06/18/08
- 1.5.4.1 → 1.5.5.6 no changes
-
1.5.4
02/02/08
- 1.5.3.1 → 1.5.3.8 no changes
-
1.5.3
09/02/07
- 1.5.2.3 → 1.5.2.5 no changes
git-prune(1) Manual Page
NAME
git-prune - Prune all unreachable objects from the object database
SYNOPSIS
git prune [-n] [-v] [--expire <expire>] [--] [<head>...]
DESCRIPTION
Note |
In most cases, users should run git gc, which calls git prune. See the section "NOTES", below. |
This runs git fsck --unreachable using all the refs available in refs/, optionally with additional set of objects specified on the command line, and prunes all unpacked objects unreachable from any of these head objects from the object database. In addition, it prunes the unpacked objects that are also found in packs by running git prune-packed.
Note that unreachable, packed objects will remain. If this is not desired, see git-repack(1).
OPTIONS
- -n
- --dry-run
Do not remove anything; just report what it would remove.
- -v
- --verbose
Report all removed objects.
- --
Do not interpret any more arguments as options.
- --expire <time>
Only expire loose objects older than <time>.
- <head>...
In addition to objects reachable from any of our references, keep objects reachable from listed <head>s.
EXAMPLE
To prune objects not used by your repository nor another that borrows from your repository via its .git/objects/info/alternates:
$ git prune $(cd ../another && $(git rev-parse --all))
Notes
In most cases, users will not need to call git prune directly, but should instead call git gc, which handles pruning along with many other housekeeping tasks.
For a description of which objects are considered for pruning, see git fsck's --unreachable option.
SEE ALSO
GIT
Part of the git(1) suite