There must be more or less submission records for more than a month, otherwise you would not undo all local modifications. Return to the last modification: git reset --hard, 当然你也可以git reflog去查看下记录,再git reset --hard HEAD@{num}num is the submission record number
There must be more or less submission records for more than a month, otherwise you would not undo all local modifications. Return to the last modification:
git reset --hard
,当然你也可以
git reflog
去查看下记录,再git reset --hard HEAD@{num}
num is the submission record numberIf you use PhpStorm, you can view Local History, which contains all your modification records
git reflog
可以查看你的git的操作记录,然后通过git reset --hard HEAD@{}
You can roll back to a certain versionI’m curious if it hasn’t been submitted for more than a month
Isn’t it said that it is recorded in behavioral units
If it has been committed, you can go back to a certain version based on the version number.