View the git reflog:
git reflogLook 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 messageReturn to that state:
git reset --hard <commit_id>View the git reflog:
git reflogLook 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 messageReturn to that state:
git reset --hard <commit_id>