How list new files created in a commit?

I'd like to list all new files in a commit, I am trying the following command, but it is not filtering by commit, it is returning all commits.

git whatchanged --diff-filter=A --pretty=format: bc895ad6a411683f5737d4a4b89e52f54cd2d68c

Upvotes: 2

Views: 85

Answers (1)

I got it, the command bellow do precisely what I want.

git show <hash> --name-status --diff-filter=A

Upvotes: 3

Related Questions