Command
git reflogExplanation
git reflog is used to record when the tips of branches were updated. It records the tips of branches that were updated.
Examples
Show reference log
git reflogShow log for specific branch
git reflog show maingit refloggit reflog is used to record when the tips of branches were updated. It records the tips of branches that were updated.
Show reference log
git reflogShow log for specific branch
git reflog show main