Branching & HistoryAdvanced LevelStudy Time: 25 mins

Log & Reflog Workflow

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.

Loading visualizer workspace...

Real-world analogy: History Book vs Security Logs

Commit History
Reference Logs
Hover over items for details

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.

  • Commit History= Linear ancestor timeline of commits in the active branch.
  • Reference Logs= Local history logs tracking HEAD movements and checkouts.

Git commands & actions explained

Real-world applications

Case 01

Commit Recovery

Recovers deleted commits and branch checkouts.

Case 02

History Auditing

Audits team commit logs to trace when features were introduced.

Case 03

Safety Net

Restores local states after incorrect rebases or pointer resets.

Interview questions

Topic Knowledge Test & Assessment

10 Questions Assessment

Git Log Reflog Knowledge & Skill Test

Validate your conceptual understanding, operation mechanics, and core concepts of Git Log Reflog.