My Question is very similar to this - May I list the files of the current commit?
Problem Statement: I am trying to get the list of all the files which were new/changed in the last commit in "master" branch.
What I tried: Ran these commands from the directory where my .git
directory is for the project. git show --name-only
and git show --name-only master
but doesn't show the expected result.
It shows me this:
Merge: f733602 4d98b76
Author: Some Name <some.name@company.com>
Date: Thu Jul 1 11:34:49 2020 -0700
Merge pull request #28 from secret/my_rqd_files
What I am expecting is - it should show the list of all the files with their full path in the repo.
Question: What should I do or what I am doing wrong?