Alex Rivera | Logout

How to list only the names of files that changed between two commits

Asked 2009-10-12T01:48:06.630
2811

I have a bunch of commits in the repository. I want to see a list of files changed between two commits - from SHA1 to SHA2.

What command should I use?

Edit
Report

1 Answer

83

But for seeing the files changed between your branch and its common ancestor with another branch (say origin/master):

git diff --name-only `git merge-base origin/master HEAD`
answered 2012-03-20T17:10:23.303

Your Answer