Documentation / git-reflog.txton commit Merge branch 'maint' (c85d4f1)
   1git-reflog(1)
   2=============
   3
   4NAME
   5----
   6git-reflog - Manage reflog information
   7
   8
   9SYNOPSIS
  10--------
  11'git reflog' <subcommand> <options>
  12
  13DESCRIPTION
  14-----------
  15The command takes various subcommands, and different options
  16depending on the subcommand:
  17
  18[verse]
  19git reflog expire [--dry-run] [--stale-fix]
  20        [--expire=<time>] [--expire-unreachable=<time>] [--all] <refs>...
  21
  22git reflog [show] [log-options]
  23
  24Reflog is a mechanism to record when the tip of branches are
  25updated.  This command is to manage the information recorded in it.
  26
  27The subcommand "expire" is used to prune older reflog entries.
  28Entries older than `expire` time, or entries older than
  29`expire-unreachable` time and are not reachable from the current
  30tip, are removed from the reflog.  This is typically not used
  31directly by the end users -- instead, see gitlink:git-gc[1].
  32
  33The subcommand "show" (which is also the default, in the absense of any
  34subcommands) will take all the normal log options, and show the log of
  35the current branch. It is basically an alias for 'git log -g --abbrev-commit
  36--pretty=oneline', see gitlink:git-log[1].
  37
  38
  39OPTIONS
  40-------
  41
  42--expire=<time>::
  43        Entries older than this time are pruned.  Without the
  44        option it is taken from configuration `gc.reflogExpire`,
  45        which in turn defaults to 90 days.
  46
  47--expire-unreachable=<time>::
  48        Entries older than this time and are not reachable from
  49        the current tip of the branch are pruned.  Without the
  50        option it is taken from configuration
  51        `gc.reflogExpireUnreachable`, which in turn defaults to
  52        30 days.
  53
  54--all::
  55        Instead of listing <refs> explicitly, prune all refs.
  56
  57Author
  58------
  59Written by Junio C Hamano <junkio@cox.net>
  60
  61Documentation
  62--------------
  63Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
  64
  65GIT
  66---
  67Part of the gitlink:git[7] suite