I have a local git repository with only the main branch. So I did a few commits. Afterward, I decided to go back to the first commit. So I did
git checkout xxxxxx
But now when I do git log
I can only see the first commit. How do I get back to the latest code?