Zhonghui

每个不曾起舞的日子,都是对生命的辜负

User Tools

Site Tools


软件:git:show

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
/var/www/DokuWikiStick/dokuwiki/data/pages/软件/git/show.txt · Last modified: 2025/10/01 02:32 by zhonghui