To list all the files changed in a specific commit, along with their status, you can use the following git command:
git show --name-status <commit_hash>
Replace <commit_hash> with the actual hash of the commit you want to inspect.
The --name-status option will display the list of files along with a status code for each file:
- A for added files
- M for modified files
- D for deleted files
If you want a more detailed view that includes the changes made to the files, you can use:
git show <commit_hash>
This will display the commit message, metadata, and the full diff of the changes, along with the changed files. If you only want the names and statuses, stick with the --name-status option.