我有2个我没有推送的提交:
$ git status
# On branch master
# Your branch is ahead of 'faves/master' by 2 commits.
如何退回第一个(最旧的),但保留第二个?
$ git log
commit 3368e1c5b8a47135a34169c885e8dd5ba01af5bb
...
commit baf8d5e7da9e41fcd37d63ae9483ee0b10bfac8e
...
从这里:
http://friendfeed.com/harijay/742631ff/git-question-how-do-i-rollback-commit-just-want
我是否需要做:
git reset --hard baf8d5e7da9e41fcd37d63ae9483ee0b10bfac8e
那是?