Git Log displays the history of commits in a branch. Git Reflog records every pointer movement (commits, checkouts, resets, merges) in your local repository workspace.
Git Log is a history textbook: it lists the official lineage of commits. Git Reflog is a building security camera log: it records every entrance and exit, even if you delete a branch.
Recovers deleted commits and branch checkouts.
Audits team commit logs to trace when features were introduced.
Restores local states after incorrect rebases or pointer resets.
Validate your conceptual understanding, operation mechanics, and core concepts of Git Log Reflog.
Reflog is completely local! It is never pushed to remote repositories, serving as a personal safety net.
Git Log shows branch commit history. Git Reflog tracks local HEAD movements for 1-click commit recovery.
git log: Output the commit lineage walking backwards from the current HEAD.
git reflog: Reference log recording every HEAD movement. Click Recover on any entry to execute git reset --hard HEAD@{n} and restore your repository state!