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