0

git log only gives me the comment. How can I know the files changed by a Git commit/push, and how each file diffs?

I suppose Git should have a direct command, or a command parameter.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Troskyvs
  • 7,537
  • 7
  • 47
  • 115
  • 1
    Possible duplicate of [How to list all the files in a commit?](http://stackoverflow.com/questions/424071/how-to-list-all-the-files-in-a-commit) – Tim Biegeleisen Oct 11 '16 at 10:33
  • For your second question: http://stackoverflow.com/questions/3338126/how-to-diff-the-same-file-between-two-different-commits-on-the-same-branch – Tim Biegeleisen Oct 11 '16 at 10:34

1 Answers1

1

You can use "git show" to view an object's details and for commits this will by default show all the diffs for the commit.

git show e6549b09

Both show and log have lots of formatting options and the command line is similar to control the amount of information output. For example, "--stat" will show you a summary of the changes made.

git show --stat e6549b09

Checkout the help pages,

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Eamonn Boyle
  • 466
  • 1
  • 4
  • 7