git diff <commit1> <commit2> --stat
如:
git diff 74ecf17dc 1ee25ed3c --stat src/assets
上面最后的 src/assets 是指定文件夹,也可以不指定