Use HEAD to indicate the current version. The last version is HEAD^, and the last version is HEAD^^. Of course, it is easier to write 100^ for the upper 100 versions, so it is written as HEAD~100
git reset --hard HEAD^ #
Go back to the previous version git reset --hard 1094a # "1094a" is the latest version number, the version number does not need to be written in full, just the first few digits, and Git will find it automatically