In brief
git reflog records local reference movements, including HEAD. It can help locate a commit after reorganizing work or moving a branch.
Useful to know
git reflog records local reference movements, including HEAD. It can help locate a commit after reorganizing work or moving a branch. [1]
The log is not permanent storage and is not automatically identical on another machine. Inspect a recovered commit before changing the current state. Local reference history and shared project history provide different information.
Sources
For further detail and to check the information: