1
In Visual Studio Code, the "Sourse Control: GIT tab" in "Discart All Changes" deleted the changes made and some files I created. There is a way to reverse this and recover the deleted files?
1
In Visual Studio Code, the "Sourse Control: GIT tab" in "Discart All Changes" deleted the changes made and some files I created. There is a way to reverse this and recover the deleted files?
3
Changes that were not committed cannot be recovered as they have never been "tracked" by git, so unfortunately, it does not have a snapshot with these changes.
If you have any plugin in vs code that sees the local history, as is the case of local history, you can recover the files by editing history.
I suspected that this would be the correct answer. Everything I read, including, reinforces the idea that git does not maintain "unstaged changes". I found, inslusive, that answer in the international SO which reinforces that there is no more hope
Browser other questions tagged git visual-studio-code
You are not signed in. Login or sign up in order to post.
These files were already committed?
– Felipe Avelar
There were no @Felipe Avelar
– Emerson Barcellos
You had already given
. add
or something like?– hugocsl
I didn’t do any git @hugocsl action, I just programmed the files
– Emerson Barcellos