On Sat, Jun 16, 2012 at 05:43:14PM +0800, lei yang wrote:
> I know below command can get which file changed between the two commit
> lyang0@lyang0-OptiPlex-755:~/git/kernel-3.4.x$ git diff --name-only
> can we show the info with which commit changed the file ?
Use `git log` for this:
$ git log --format=%H --name-only
would output, for each commit, a SHA-1 name of that commit,
a blank name and then the list of files affected by that commit.
Note that `git log` accepts quite a number of option `git diff` supports
(since `git log` calls `git diff` in certain modes of its operation)
so read the `git log` manual for more info.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at