IT lexicon › Programming › Reflog

Reflog

Programming På svenska → Updated: 2026-11-13

Git log that tracks every movement of references (branches and HEAD) in your local repo.

Reflog (reference log) is Git's safety net. It records every time a reference like `HEAD`, a branch, or a tag moves. With `git reflog` you can find commits that seem deleted or rewritten after a bad rebase or reset. Reflogs are stored locally per repository and aren't synced between developers, which distinguishes them from `git log` which represents the official repository history. Many developers have recovered work thought lost by digging through the reflog.

← Back to the lexicon