git show --summary
$ git reset --soft HEAD~1
git log --oneline -n
git log -n (replace n by number of commits, -2,-5...)