user3660827
user3660827

Reputation: 75

how to get the list of files from a merge commit id

I am in master branch, I need to get the list of files in each commit id, I am not able to retrieve any files using the merge commit id, If a merge happens from a different branch to master, then if use the regular (git show or git diff tree) for the merge commit id it returns nothing.

Basically I am not able to get the list of files that has been modified in different branch and merged to master. Is there a way to get the list of files using merge commit id ..??

Upvotes: 7

Views: 3204

Answers (1)

Manquer
Manquer

Reputation: 7647

You can use

git log -m -1 --name-only --pretty="format:"  COMMITID

Upvotes: 6

Related Questions