0、git rebase -i HEAD~2 // 查看最近两次commit的内容 1、git commit --amend // 修改commit内容,修改完保存 1.1、git rebase --continue 继续修改下一次commit内容 2、git push -f //提交刚才修改的commit内容,在gitlab上就可以看到了