Show


git show afc6b7916efa5a76c369b34ee2c10928f936f2ce # 查看某一次Commit所包含的修改
 
# 只看改了哪些文件
git show --name-only <commit_hash>
 
# 看摘要统计(新增/删除行数)
git show --stat <commit_hash>
 
# 以 diff 形式展示(等同于默认 -p)
git show -p <commit_hash>
 
# 查看特定文件在该提交时的内容
git show <commit_hash>:path/to/file