Search

git reflog

Requirements
To follow this setup, it is required to have following …
No Requirements
Logs [git reflog]
This command manages the information recorded in the reflogs. Reference logs, or "reflogs", record when the tips of branches and other references were updated in the local repository. Reflogs are useful in various Git commands, to specify the old value of a reference.
Synopsis [git reflog --<synopsis>]
git reflog [show] [<log-options>] [<ref>] git reflog expire [--expire=<time>] [--expire-unreachable=<time>] [--rewrite] [--updateref] [--stale-fix] [--dry-run | -n] [--verbose] [--all [--single-worktree] | <refs>] git reflog delete [--rewrite] [--updateref] [--dry-run | -n] [--verbose] <ref>@{<specifier>}… git reflog exists <ref>
YAML
복사
Commonly Used Commands
Default restore
1.
git reflog
2.
git reset --hard <hash address>

Reference