git show 速记

作用:查看某次提交的详细改动内容

基础用法

  1. 看最新一次提交
git show
  1. 指定哈希看某次提交
git show 提交id

常用参数

  • git show --stat 只看改动文件、行数统计
  • git show 分支名 查看分支最新提交

三者极简区分

  • git log:罗列所有提交记录
  • git blame:逐行查代码归属人
  • git show:点开某次提交看具体改了啥