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