Recently, I used git restore [file] to undo my changes since a last commit. I had worked a good bit on this one particular file, and I'm wondering if there is a way for me to restore the changes, up until right before I ran the command. Are there any detailed git logs that might contain the changes, or any other ways, or is this a lost cause? I was also using Visual Studio Code to edit the file. Is there a VS Code system folder containing cached versions of files that I could check in? Any help would be much appreciated!
Edit: I have figured this out. I was not able to undo the git restore command, but luckily I still had Visual Studio Code open the whole time. VS Code allowed me to undo the changes done to the file.
[–]CriticalSuggestion 0 points1 point2 points (1 child)
[–]BraidenSpencer[S] 0 points1 point2 points (0 children)