View the git reflog:

git reflog

Look for the commit to which I want to revert the branch’s state:

c3d4567 HEAD@{0}: reset: moving to HEAD~1
4b2c789 HEAD@{1}: commit: Your last commit message

Return to that state:

git reset --hard <commit_id>