是否可以在 Atom 中撤消 "Discard Changes"?

Is it possible to undo "Discard Changes" in Atom?

在完成作业时,我看到在 atom 的 Git 部分的 Unstaged 更改中有 40 个文件。 (在右侧的面板中)要删除它们,我单击了单个文件并选择了 "Discard All changes"。现在我看到所有40个文件都被删除了。

虽然我通过 "Undo Last discard" 恢复了 12 个文件,但我还需要所有其他文件。我想恢复这些文件,因为它们包含我整个学期编写的所有代码。

注意 - 即使在学习了一些教程之后,我仍然无法正确理解 Git 和 GitHub,如果我做了一些愚蠢的事情,请原谅我。

"Unstaged changes" 是一个复杂的词 "this is what I did, and have not put into git yet",不幸的是,"discard them" 意味着 "remove the stuff I did and haven't saved in git yet"。

git 不会帮助你,你必须看看你的编辑器或你的系统提供了什么来取消删除文件:检查垃圾桶,你的编辑器的选项来查看你保存在本地的文件的历史记录。 ..

作为最后的手段,您可以使用文件恢复实用程序。