我是 git 和 ruby on rails 的新手,我正在尝试用 git 恢复前几天的工作,所以我输入“git log”,我可以在我的应用程序目录中看到我的存储库“提交”:
commit 016a8807427c46087762b56e1ea02abc
Author: Antonio
Date: Mon Feb 4 11:32:32 2013 +0100
session errors
commit cc3c292ffd110414cf4db54c5b976f2f
Author: Antonio
Date: Sun Feb 3 21:02:59 2013 +0100
hw2_c
commit af2a509d462e454d0315c63ce98ad6d0
Author: Antonio
Date: Sun Feb 3 20:34:55 2013 +0100
hw2_elementsId
commit 2314687a32c7f56ff8fc8557d95af3df
Author: Antonio
Date: Sun Feb 3 20:25:23 2013 +0100
hw2_b
但是当我尝试检查任何提交时,我总是收到相同的错误消息:
git checkout hw2_c
error: pathspec 'hw2_c' did not match any file(s) known to git.
谁能帮我?