git rebase -i HEAD~[number_of_commits]
git rebase -i HEAD~2
git rebase
原文:http://www.cnblogs.com/shiningrise/p/5596615.html