git log只显示提交日志,git show可以显示代码差异。
git log
git show
git commit --amend 修改最后一次commit的提交信息,将最近git add的修改添加到最近的commit。
git commit --amend
git add