1.

How do you find the list of files changed in particular commit?

Answer»

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}

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}

Here - no-commit- id will stifle the commit HASHES from showing up in the output, and - name-only will just print the record names, rather than their ways.



Discussion

No Comment Found