The code was not submitted to the local warehouse, git extension accidentally checked out and reset the previous version, how to restore the written code, urgent

Code not submitted to local warehouse, git extension accidentally checked out and reset the previous version, how to restore the already written code, urgent, thank you

Git
Mar.03,2021

what is not submitted is tragic by checkout again, which means that you have given up the modified code. If checkout has done stash before, he can still save it, otherwise the immortal is really difficult to save.


if your reset code conflicts with local changes, chances are that the changes have been thrown away.

so it is recommended to develop the habit of commit at ordinary times. Anyway, commit can be modified locally, and commit is free.
or with the help of IDE's git management features, such as the JetBrains series will prompt you to archive (stash), VS before pulling other branch code.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b53e-2c26d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b53e-2c26d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?