I did a git commit
but I have not pushed it to the repository yet. 我作了一个git commit
但我尚未将它推送到存储库。 So when I do git status
, I get '# Your branch is ahead of 'master' by 1 commit. 因此,当我作git status
,我获得'#你的分支超过'master'提交1次。 git
So if I want to roll back my top commit, can I just do: 因此,若是我想回滚个人顶级提交,我能够这样作: spa
git reset --hard eb27bf26dd18c5a34e0e82b929e0d74cfcaab316
given that when I do git log
I get: 鉴于当我作git log
我获得: .net
commit eb27bf26dd18c5a34e0e82b929e0d74cfcaab316 Date: Tue Sep 29 11:21:41 2009 -0700 commit db0c078d5286b837532ff5e276dcf91885df2296 Date: Tue Sep 22 10:31:37 2009 -0700