试图取消删除文件,说它找不到文件,即使我在我的日志中看到它

时间:2012-01-26 02:49:37

标签: git

我跑了:

git log --diff-filter=D --summary

我看到了删除的文件:

commit  abc123abc123
..
some desc here


delete mode 100644 myapp/db/scripts/some_table.sql

所以我试着把文件拿回来:

>git checkout abc123abc123 myapp/db/scripts/some_table.sql
>error:  pathspec 'myapp/db/scripts/some_table.sql' did not match any file(s) known to git.

问题是什么?

1 个答案:

答案 0 :(得分:3)

查看提交上一页abc123abc123是删除它的提交。您想要从之前结帐