$ git reset --soft HEAD^1 $ git commit --amend 转载于:https://www.cnblogs.com/Dennis-mi/articles/7593431.html