我跑了:
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.
问题是什么?
答案 0 :(得分:3)
查看提交上一页。 abc123abc123
是删除它的提交。您想要从之前结帐