0 votes
in Git by
How do you find the list of files changed in particular commit?

1 Answer

0 votes
by
Sometimes you require to inspect files which were part of a particular commit. Each commit is tagged with hash. You can use below command to see the list of files changed during particular commit.

git diff-tree -r {hash}

Command

hash- commit Id

Given the submit hash, this will list down every one of the records that were changed or included that submit. The - r flag makes the order list singular records, instead of falling them into root index names as it were. The yield will likewise incorporate some additional data, which can be effectively stifled by including two or three flags::

git diff-tree --no-commit-id --name-only -r {hash}

Related questions

0 votes
asked Feb 13, 2022 in Git by rajeshsharma
0 votes
0 votes
asked Aug 24, 2023 in Git by JackTerrance
...