I cloned a repository, made some changes and committed a few files, then used git pull to fetch remote modifications. Realizing it had automerged some changes, I wanted to go back to my latest (local) commit, to just git fetch remote and merge manually.
So, I used git log to find my latest commit, and git reset --hard my_commit_hash. But now, I’m back at square one, with every single one of my commits lost. How can I go back to my latest one?