Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List files modified for particular git commit [duplicate]

Tags:

git

git-commit

I have commit, abc, and I want to list files that were modified for the commit.

What is the git command which will list modified files for that commit?

like image 924
Alpha Avatar asked Feb 02 '14 19:02

Alpha


People also ask

How do you find list of files that has changed in a particular commit?

Find what file changed in a commit To find out which files changed in a given commit, use the git log --raw command.

How do you see what was changed in a commit?

If you have the hash for a commit, you can use the git show command to display the changes for that single commit. The output is identical to each individual commit when using git log -p .

How do I display only the names of changed files?

git show --name-only SHA1 . you can also do: git diff --name-only HEAD@{3} HEAD@{0} for the exact commits you want to compare.


1 Answers

For filenames only:

git show --name-only abc 

To see a summary of what happened to them:

git show --name-status abc 
like image 107
Greg Bacon Avatar answered Oct 04 '22 06:10

Greg Bacon