从Git将所有已删除的文件恢复到当前工作目录

3
我不小心删除了项目中 frontend 目录下的所有文件,这里是我存放所有文件的地方。我可以在“更改”面板中看到所有这些文件,并且它们标有“D”。是否有任何方法可以完全恢复所有内容。
现在,这是我的当前项目外观。

enter image description here enter image description here enter image description here

1个回答

1
使用“git reset --hard”。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接