一个特定文件的Git日志和差异

12

如何获取包括每个提交差异的日志列表?
例如:

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中的更改。
但仅在这两个提交之间,而不是所有更改/some/file的提交中。

1个回答

21

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接