git command to reset head to reflog reference code example Example: git reflog reset git reset HEAD@{1}