不应该git reset --hard 2ef82获取我的所有文件吗?

时间:2012-12-06 23:32:54

标签: git

不应该将已提交,登台和工作区域中的所有文件重绕到该提交吗?它不适合我。

我的目的是提交,玩我的Rails项目,然后回到那个提交,但它不起作用......

MY GIT LOG:

Brians-MacBook-Air:social brianspinos777$ git log
commit f3671f19229482af889f561a44f9cf8708c6285b
Author: brian spinos <brianspinos777@hotmail.com>
Date:   Thu Dec 6 18:07:11 2012 -0500

    before dummie scaffold brian

commit 48c9df97919c7a67507197fea7d615c22d748f8d
Author: brian spinos <brianspinos777@hotmail.com>
Date:   Thu Dec 6 17:27:18 2012 -0500

    added a home page

commit bccb86c500b3519aeded25e42cf0359a17fa30e2
Author: brian spinos <brianspinos777@hotmail.com>
Date:   Thu Dec 6 17:08:37 2012 -0500

    commented the attr stuff in the model

commit e6c446fbf0e921691ea117b2054456aed2c9ea29
Author: brian spinos <brianspinos777@hotmail.com>
Date:   Thu Dec 6 15:57:13 2012 -0500

    migration success

commit de530a52e5191e288d185033d9df989112e4a2c4
Author: brian spinos <brianspinos777@hotmail.com>
Date:   Thu Dec 6 15:43:08 2012 -0500

    before rake db migrate
Brians-MacBook-Air:social brianspinos777$ 

1 个答案:

答案 0 :(得分:1)

不,你想要检查那个哈希

git checkout 2ef82