What does git reflog display?
a) A history of all reference updates
b) A list of untracked files
c) A history of all pull requests
d) A list of all merged branches
Answer:
a) A history of all reference updates
Explanation:
The git reflog command displays a history of all reference updates in your Git repository, including branch checkouts, commits, and resets. It shows all movements of the HEAD pointer, even those that are not recorded in the commit history.
For example, running git reflog will list every change made to HEAD, allowing you to recover lost commits or branches that were reset or modified.
git reflog is especially useful for undoing mistakes and tracking the repository’s history more comprehensively than the regular git log.