Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you find who merged a git commit into a branch?

There is a file in our git repository in work, I want to find out who merged this file into a branch.

I have the commit hash that identifies the commit (lets say 552a976f1a25f9bad57efb9455e951f6b7b3367f) that introduced the file, and I know that the file is on the branch staging.

How can I find the hash of the commit that merged the commit above into the staging branch? I want to find the user who merged, and the date of the merge.

like image 775
Marc O'Morain Avatar asked May 14 '12 15:05

Marc O'Morain


People also ask

How do I find merge commits?

To see the merge commit's message and other details, use git show-merge with the same arguments.

Which command is used to display merge history?

Use the p4 integrated and p4 filelog to display merge history.


1 Answers

git log -1 --merges <hash>

Will show the most recent merge commit log since the <hash> commit (including itself).

like image 200
KurzedMetal Avatar answered Nov 08 '22 20:11

KurzedMetal