1GIT-REFLOG(1) Git Manual GIT-REFLOG(1)
2
3
4
6 git-reflog - Manage reflog information
7
9 git reflog <subcommand> <options>
10
12 The command takes various subcommands, and different options depending
13 on the subcommand:
14
15
16 git reflog expire [--dry-run] [--stale-fix]
17 [--expire=<time>] [--expire-unreachable=<time>] [--all] <refs>...
18 git reflog [show] [log-options]
19
20 Reflog is a mechanism to record when the tip of branches are updated.
21 This command is to manage the information recorded in it.
22
23 The subcommand "expire" is used to prune older reflog entries. Entries
24 older than expire time, or entries older than expire-unreachable time
25 and are not reachable from the current tip, are removed from the
26 reflog. This is typically not used directly by the end users — instead,
27 see git-gc(1).
28
29 The subcommand "show" (which is also the default, in the absence of any
30 subcommands) will take all the normal log options, and show the log of
31 HEAD, which will cover all recent actions, including branch switches.
32 It is basically an alias for git log -g --abbrev-commit
33 --pretty=oneline, see git-log(1).
34
36 --stale-fix
37 This revamps the logic — the definition of "broken commit" becomes:
38 a commit that is not reachable from any of the refs and there is a
39 missing object among the commit, tree, or blob objects reachable
40 from it that is not reachable from any of the refs.
41
42 This computation involves traversing all the reachable objects,
43 i.e. it has the same cost as git prune. Fortunately, once this is
44 run, we should not have to ever worry about missing objects,
45 because the current prune and pack-objects know about reflogs and
46 protect objects referred by them.
47
48 --expire=<time>
49 Entries older than this time are pruned. Without the option it is
50 taken from configuration gc.reflogExpire, which in turn defaults to
51 90 days.
52
53 --expire-unreachable=<time>
54 Entries older than this time and are not reachable from the current
55 tip of the branch are pruned. Without the option it is taken from
56 configuration gc.reflogExpireUnreachable, which in turn defaults to
57 30 days.
58
59 --all
60 Instead of listing <refs> explicitly, prune all refs.
61
63 Written by Junio C Hamano <junkio@cox.net>
64
66 Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
67
69 Part of the git(7) suite
70
71
72
73
74Git 1.5.3.3 10/09/2007 GIT-REFLOG(1)