git-write-tree should not crash if prefix does not exist
[git/dscho.git] / Documentation / git-reflog.txt
blob89bc9c51ea13630f6556b12637ce8b1cc483d2fd
1 git-reflog(1)
2 =============
4 NAME
5 ----
6 git-reflog - Manage reflog information
9 SYNOPSIS
10 --------
11 'git reflog' <subcommand> <options>
13 DESCRIPTION
14 -----------
15 The command takes various subcommands, and different options
16 depending on the subcommand:
18 [verse]
19 git reflog expire [--dry-run] [--stale-fix]
20         [--expire=<time>] [--expire-unreachable=<time>] [--all] <refs>...
22 git reflog [show] [log-options]
24 Reflog is a mechanism to record when the tip of branches are
25 updated.  This command is to manage the information recorded in it.
27 The subcommand "expire" is used to prune older reflog entries.
28 Entries older than `expire` time, or entries older than
29 `expire-unreachable` time and are not reachable from the current
30 tip, are removed from the reflog.  This is typically not used
31 directly by the end users -- instead, see gitlink:git-gc[1].
33 The subcommand "show" (which is also the default, in the absense of any
34 subcommands) will take all the normal log options, and show the log of
35 the current branch. It is basically an alias for 'git log -g --abbrev-commit
36 --pretty=oneline', see gitlink:git-log[1].
39 OPTIONS
40 -------
42 --stale-fix::
43         This revamps the logic -- the definition of "broken commit"
44         becomes: a commit that is not reachable from any of the refs and
45         there is a missing object among the commit, tree, or blob
46         objects reachable from it that is not reachable from any of the
47         refs.
49 This computation involves traversing all the reachable objects, i.e. it
50 has the same cost as 'git prune'.  Fortunately, once this is run, we
51 should not have to ever worry about missing objects, because the current
52 prune and pack-objects know about reflogs and protect objects referred by
53 them.
55 --expire=<time>::
56         Entries older than this time are pruned.  Without the
57         option it is taken from configuration `gc.reflogExpire`,
58         which in turn defaults to 90 days.
60 --expire-unreachable=<time>::
61         Entries older than this time and are not reachable from
62         the current tip of the branch are pruned.  Without the
63         option it is taken from configuration
64         `gc.reflogExpireUnreachable`, which in turn defaults to
65         30 days.
67 --all::
68         Instead of listing <refs> explicitly, prune all refs.
70 Author
71 ------
72 Written by Junio C Hamano <junkio@cox.net>
74 Documentation
75 --------------
76 Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
78 GIT
79 ---
80 Part of the gitlink:git[7] suite