Ralf17 Ralf17 - 5 months ago 24
Git Question

How do I list the files that has been modified for a particular commit?

Say I have made a series of commit for a certain project, so when I

git log --oneline
it produces the following

e61c4fb Wrote the special problem review of related literature.
eb584ba Wrote the special problem objectives.
8d2dd52 Added more research papers
72a2d27 Fixed the bug during the removal of parent chromosomes in ga_wknn and saga_wknn
d7467df Added as the k in KNN as a parameter in the constructor of each application.
2293f43 Added a simulation result.
bdfcf41 Done with adding Introduction Comments

Next I would like to see the files that has been added, modified, deleted in one of those commits. I've tried

git diff d7467df

but it also show me the modified content for each file, which makes the entire thing long. I only want to see the list files that has been changed, and no contents associated. How do I achieve this?


git show --name-only commit_hash