Merge branch 'master' of git://git.kernel.org/pub/scm/git/git
[git/jnareb-git.git] / Documentation / git-reflog.txt
blob9fc8bfaf165f7b006b303a47cfccf71b8a0dc69e
1 git-reflog(1)
2 =============
4 NAME
5 ----
6 git-reflog - Manage reflog information
9 SYNOPSIS
10 --------
11 [verse]
12 'git-reflog' expire [--dry-run] [--stale-fix]
13         [--expire=<time>] [--expire-unreachable=<time>] [--all] <refs>...
16 DESCRIPTION
17 -----------
19 Reflog is a mechanism to record when the tip of branches are
20 updated.  This command is to manage the information recorded in it.
22 The subcommand "expire" is used to prune older reflog entries.
23 Entries older than `expire` time, or entries older than
24 `expire-unreachable` time and are not reachable from the current
25 tip, are removed from the reflog.  Entries which refer to
26 commits that are no longer in the repository are pruned
27 regardless of their age.  This command is typically not used
28 directly by the end users -- instead, see gitlink:git-gc[1].
31 OPTIONS
32 -------
34 --expire=<time>::
35         Entries older than this time are pruned.  Without the
36         option it is taken from configuration `gc.reflogExpire`,
37         which in turn defaults to 90 days.
39 --expire-unreachable=<time>::
40         Entries older than this time and are not reachable from
41         the current tip of the branch are pruned.  Without the
42         option it is taken from configuration
43         `gc.reflogExpireUnreachable`, which in turn defaults to
44         30 days.
46 --all::
47         Instead of listing <refs> explicitly, prune all refs.
49 Author
50 ------
51 Written by Junio C Hamano <junkio@cox.net>
53 Documentation
54 --------------
55 Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
57 GIT
58 ---
59 Part of the gitlink:git[7] suite