Recover file after bench update reset command

Hello, i have run command bench update --reset without any backup or commit. Is there any way to recover the code or file changes

Hi @Lucifer,

Please try and apply it.

bench update --reset --no-backup

Then migrate the bench using the below command:

bench --site [sitename] migrate

Thank You!

@NCP , thank you!

If you never committed/stashed it in code then it’s lost.

If you ever committed then you can recover using git reflog

okay. Thank you for the response.