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

标签 reactjs git github git-commit

我不小心从项目中删除了前端目录中的所有文件。这是我拥有一切的地方。我可以在 changes Pane 中看到所有这些文件,并且它被标记为 D。有什么方法可以完全检索所有内容。

现在,这是我当前项目的样子

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

最佳答案

使用“git reset --hard”

关于reactjs - 从 Git 将所有删除的文件恢复到当前工作目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62689493/

相关文章:

javascript - 显示来自状态的输入值

css - 使用 Recharts 实现循环进度条

javascript - 查询自定义数据库(Mongodb)

svn - Subversion 相当于 Git 的 'show' 命令?

html - 在 html 标签中插入 React 变量作为属性

git - 使用 gitlab webhooks 在 Windows 服务器上部署

git - SSH:SourceTree 推送失败

ruby-on-rails - 请确保您有正确的访问权限并且仓库存在github

linux - git push 两步验证失败的解决方法(linux)

github - 在 GitHub 上有一个公共(public)仓库的私有(private)分支?