i'm working on a project on VSCode. I made lot of changes to a file, then I accidentaly deleted it without pushing it to the repo. Then, for recovering it, I went to source control->discard changes to the file. However, the file has been restored with the last commit, therefore I lost all my changes. How can I recover the original file? Note than I didn't even commited it to the local repo.
Thank you very much
I tried to do git checkout but did not work.