1 输入命令:
git commit --amend
2修改你最近提交的message,输入 :q 退出vim编辑器
3查看是否修改成功:git log
4修改成功后,提交远程:
git push <remote> <branch> --force
# Or
git push <remote> <branch> -f
5查看远程库,修改成功
参考:Edit an incorrect commit message in Git
http://book.51cto.com/art/201205/337170.htm