Git 对特定文件进行差异记录

Git log with diff for a certain file

如何获得结合每次提交差异的日志列表
即:

commit1  
Author
Date  
Commit message
changes between commit1 and commit2

commit2  
Author
Date
Commit message
changes between commit2 and commit3
...

使用
git log /some/file
给出更改的提交列表 some/file

即:

commit1  
Author
Date  
Commit message

commit2  
Author
Date
Commit message
...

但是,不会显示每次提交中的更改

使用
git diff hash1..hash2 /some/file
给出这两个提交之间 /some/file 的变化。
但仅在这 2 次提交之间,而不是通过所有更改的提交 /some/file

根据 https://git-scm.com/docs/git-log 你可以使用

git log -p path 
显示涉及指定路径的提交,以及关于相同指定路径的差异。